Zuoqiu-Yingyi / siyuan-theme-dark-plus

思源笔记的一款多功能双模式主题 | A multifunctional dual-mode theme of SiYuan Note.
GNU Affero General Public License v3.0
139 stars 14 forks source link

:bug: Docker版思源笔记安装主题后,无法和预览图一样显示“霞鹜文楷等宽”字体 #172

Closed lfk2458 closed 1 year ago

lfk2458 commented 1 year ago

该问题是否已经被报告过了? Is there an existing issue for this?

描述问题 Describe the problem

Docker版思源笔记安装主题后,无法和预览图一样显示“霞鹜文楷等宽”字体

期待的结果 Expected result

Docker版思源笔记安装主题后,能和预览图一样正常显示“霞鹜文楷等宽”字体

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

- SiYuan Version: V2.6.2
- Dark+ Version: v1.6.3
- Operating System: Docker version 19.03.9
- Browser (if used):

更多信息 More information

No response

Zuoqiu-Yingyi commented 1 year ago

这是思源的限制, 浏览器访问的 web 端只能使用默认的字体或者使用主题 / CSS 片段设置字体

lfk2458 commented 1 year ago

那请问需要如何修改主题的默认字体呢?我想把字体修改为“霞鹜文楷等宽”字体

Zuoqiu-Yingyi commented 1 year ago

使用如下 CSS 片段

.b3-typography:not(.b3-typography--default),
.protyle-wysiwyg,
.protyle-title,
.protyle-title__input {
    font-family: "霞鹜文楷等宽", "quote", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;
}
lfk2458 commented 1 year ago

好的,感谢,我来试一下

lfk2458 commented 1 year ago

是添加到哪个文件里呢?还是在设置-外观-代码片段-自定义CSS中使用?