Skip to content

Commit

Permalink
fix: add fallback fonts for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
RalXYZ committed Feb 16, 2023
1 parent d027284 commit 1f9897c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scss/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/* 基准字体 */
/* 备选:Times, "Times New Roman" */
--base-Latin-font: "Latin Modern Roman", "Latin Modern Roman 10";
--base-Latin-font: "Latin Modern Roman", "Latin Modern Roman 10", Times;
--base-Chinese-font: "家族宋", "宋体-简", "华文宋体", "Noto Serif CJK SC";
--base-font-size: 9.5pt;

Expand All @@ -37,7 +37,9 @@
--quote-font-size: 1.05em;

/* 代码字体(代码中的中文会调用 ui-font) */
--code-font: "Latin Modern Mono", "Latin Modern Mono 10", "Courier New";
/* "Courier New" 从 Windows 3.1 起成为 Windows 官方提供的字体 */
/* "Consolas" 从 Windows Vista 起成为 Windows 官方提供的字体 */
--code-font: "Latin Modern Mono", "Latin Modern Mono 10", "Consolas", "Courier New";

/* 侧边栏字体 */
--ui-font: #{$ui-font};
Expand Down

0 comments on commit 1f9897c

Please sign in to comment.