Improve font family and emoji (#13241)

* Improve font family and emoji (#45)

fix https://github.com/siyuan-note/siyuan/issues/13213 https://github.com/siyuan-note/siyuan/issues/13187

* 补充字体 LICENSE

* 去除新增的变量

* 优先使用自定义字体的数字字形;更新 --b3-font-family-emoji

* 代码中的数字字形应使用 JetBrainsMono-Regular
This commit is contained in:
Jeffrey Chen 2024-12-14 10:15:30 +08:00 committed by GitHub
parent 352ff0676e
commit 3d3def6ea2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 170 additions and 13 deletions

View file

@ -219,7 +219,7 @@ export const setInlineStyle = (set = true) => {
.protyle-wysiwyg .li {min-height:${height + 8}px}
.protyle-gutters button svg {height:${height}px}`;
if (window.siyuan.config.editor.fontFamily) {
style += `\n.b3-typography:not(.b3-typography--default), .protyle-wysiwyg, .protyle-title {font-family: "${window.siyuan.config.editor.fontFamily}", var(--b3-font-family-protyle)}`;
style += `\n.b3-typography:not(.b3-typography--default), .protyle-wysiwyg, .protyle-title {font-family: "Number Glyphs Of Custom Font", "Number Glyphs", "Segoe Good Emoji", "Other SiYuan Emojis", "${window.siyuan.config.editor.fontFamily}", var(--b3-font-family-protyle)}`;
}
// pad 端菜单移除显示,如工作空间
if ("ontouchend" in document) {