代码中的数字字形应使用 JetBrainsMono-Regular
This commit is contained in:
parent
2cb8226f0c
commit
41207721ce
3 changed files with 8 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
/* DejaVu Sans 包含部分黑白 emoji 字形,会覆盖其他 emoji 字体的相应字形,所以emoji字体要放前面 https://github.com/siyuan-note/siyuan/issues/13213 */
|
||||
--b3-font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans", "Segoe UI", "Tahoma", "Arial", "Other Emojis", sans-serif;
|
||||
--b3-font-family-protyle: var(--b3-font-family);
|
||||
--b3-font-family-code: "Number Glyphs Of Custom Font", "Number Glyphs", "Segoe Good Emoji", "Other SiYuan Emojis", "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family);
|
||||
--b3-font-family-code: "Number Glyphs Of JetBrainsMono-Regular", "Segoe Good Emoji", "Other SiYuan Emojis", "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family);
|
||||
--b3-font-family-graph: mononoki;
|
||||
--b3-font-family-emoji: "Segoe Good Emoji", "Other Emojis";
|
||||
--b3-font-family-math: KaTeX_Math;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
/* 字体 */
|
||||
--b3-font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans", "Segoe UI", "Tahoma", "Arial", "Other Emojis", sans-serif;
|
||||
--b3-font-family-protyle: var(--b3-font-family);
|
||||
--b3-font-family-code: "Number Glyphs Of Custom Font", "Number Glyphs", "Segoe Good Emoji", "Other SiYuan Emojis", "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family);
|
||||
--b3-font-family-code: "Number Glyphs Of JetBrainsMono-Regular", "Segoe Good Emoji", "Other SiYuan Emojis", "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family);
|
||||
--b3-font-family-graph: mononoki;
|
||||
--b3-font-family-emoji: "Segoe Good Emoji", "Other Emojis";
|
||||
--b3-font-family-math: KaTeX_Math;
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
font-family: 'JetBrainsMono-Regular';
|
||||
src: url(../fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2) format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Number Glyphs Of JetBrainsMono-Regular";
|
||||
src: url(../fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2) format('woff2');
|
||||
/* 数字 0-9 */
|
||||
unicode-range: U+30-39;
|
||||
}
|
||||
/* 用户指定了字体时才添加 */
|
||||
@font-face {
|
||||
font-family: "Number Glyphs Of Custom Font";
|
||||
|
|
Loading…
Add table
Reference in a new issue