Skip to content
Snippets Groups Projects
Commit 096e45e0 authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

fix: 抑制了macOS和Linux上的字体警告

parent 4c922a3a
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,9 @@
% 设置中文字体
\NewDocumentCommand\set_chinese_fontset_windows{}{
\setCJKmainfont{SimSun}[AutoFakeBold=2.17, ItalicFont=KaiTi]
\setCJKmainfont{SimSun}[
AutoFakeBold=2.17,
ItalicFont=KaiTi]
\setCJKsansfont{SimHei}
\setCJKmonofont{FangSong}
\setCJKfamilyfont{zhsong}{SimSun}[AutoFakeBold=2.17]
......@@ -52,6 +54,7 @@
}
\NewDocumentCommand\set_chinese_fontset_macos{}{
\msg_redirect_name:nnn {fontspec} {no-script} {info} % 移除 does not contain script "CJK" 警告
\setCJKmainfont{Songti~SC~Light}[
BoldFont=Songti~SC~Bold,
ItalicFont=Kaiti~SC,
......@@ -82,7 +85,9 @@
Extension=.otf,
BoldFont=FandolHei-Bold]
\setCJKfamilyfont{zhfs}{FandolFang-Regular}[Extension=.otf]
\setCJKfamilyfont{zhkai}{FandolKai-Regular}[Extension=.otf]
\setCJKfamilyfont{zhkai}{FandolKai-Regular}[
Extension=.otf,
AutoFakeBold=2.17]
}
% 方正字符集
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment