mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
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:
parent
352ff0676e
commit
3d3def6ea2
7 changed files with 170 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue