Skip to content

Commit

Permalink
fix: fix source code mode Chinese character issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
RalXYZ committed Nov 9, 2021
1 parent 4ab72ed commit 0aa60e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/latex-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

:root {
@if $os == "windows" {
$ui-font: "阿里巴巴普惠体 2.0" !global;
$ui-font: "\"阿里巴巴普惠体 2.0\"", "\"微软雅黑\"" !global;
$heading-Chinese-font: "华文黑体" !global;
$chapter-Chinese-font: "华文黑体" !global;
$sub-chapter-Chinese-font: "华文楷体" !global;
Expand All @@ -31,7 +31,8 @@
/* == 字体设置 == */

/* 基准字体 */
--base-Latin-font: "Latin Modern Roman", "Latin Modern Roman 10"; /* 备选:Times, "Times New Roman" */
/* 备选:Times, "Times New Roman" */
--base-Latin-font: "Latin Modern Roman", "Latin Modern Roman 10";
--base-Chinese-font: "#{$base-Chinese-font}";
--base-font-size: 9.5pt;

Expand All @@ -45,11 +46,11 @@
--code-font: "Latin Modern Mono", "Latin Modern Mono 10";

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

/* source mode 字体 */
/* 默认调用 code-font 和 ui-font */
--sourceMode-font: "SF Mono", "#{$ui-font}";
--sourceMode-font: "SF Mono", #{$ui-font};

/* 目录字体 */
/* 默认调用 base-font */
Expand Down

0 comments on commit 0aa60e1

Please sign in to comment.