更改了默认字体为鸿蒙字体,并删除了多余字体。另外,更改字体读取方式为文件夹读取,这样,不用安装字体也可以编译。

This commit is contained in:
2022-05-14 07:55:26 +08:00
parent af1242eeae
commit 16e2d0cb99
8 changed files with 16 additions and 4 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+15 -3
View File
@@ -101,9 +101,21 @@
Path=font/
]{HarmonyOS_Sans_Regular.ttf}
\setCJKmainfont[BoldFont={_GBK}, ItalicFont={_GBK}, BoldItalicFont={仿_GBK}]{_GBK}
\setCJKsansfont{_GBK}
\setCJKmonofont{线_GBK}
\setCJKmainfont[
Path=font/,
BoldFont=fangzhengxiaobiaosong_GBK.TTF,
ItalicFont=fangzhengkaiti_GBK.TTF,
BoldItalicFont=fangzhengfangsong_GBK.TTF,
]{fangzhengshusong_GBK.TTF}
\setCJKsansfont[
Path=font/,
BoldFont=HarmonyOS_Sans_SC_Bold.ttf,
ItalicFont=HarmonyOS_Sans_SC_Light.ttf,
BoldItalicFont=HarmonyOS_Sans_SC_Black.ttf,
]{HarmonyOS_Sans_SC_Regular.ttf}
\setCJKmonofont[
Path=font/
]{fangzhengzhongdengxian_GBK.TTF}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -88,7 +88,7 @@
\vspace{0.75\baselineskip} % Whitespace above the title
{\heiti\zihao{2} 这是一个\\ 很好用的Latex模板\\} % Title
{\zihao{2} 这是一个\\ 很好用的Latex模板\\} % Title
\vspace{0.75\baselineskip} % Whitespace below the title