Closed lfk2458 closed 1 year ago
这是思源的限制, 浏览器访问的 web 端只能使用默认的字体或者使用主题 / CSS 片段设置字体
那请问需要如何修改主题的默认字体呢?我想把字体修改为“霞鹜文楷等宽”字体
使用如下 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;
}
好的,感谢,我来试一下
是添加到哪个文件里呢?还是在设置-外观-代码片段-自定义CSS中使用?
该问题是否已经被报告过了? Is there an existing issue for this?
描述问题 Describe the problem
Docker版思源笔记安装主题后,无法和预览图一样显示“霞鹜文楷等宽”字体
期待的结果 Expected result
Docker版思源笔记安装主题后,能和预览图一样正常显示“霞鹜文楷等宽”字体
截屏或者录屏演示 Screenshot or screen recording presentation
No response
版本环境 Version environment
更多信息 More information
No response