Skip to content

Commit

Permalink
Fonts: 修正字体依赖
Browse files Browse the repository at this point in the history
ubuntu/macOS下系统没有Times New Roman.  这个patch使用了仓库自带的ttf文件。
  • Loading branch information
Tr0py committed May 31, 2023
1 parent eb88f72 commit 6b989c0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions NKThesis.sty
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,24 @@ ItalicFont=timesi.ttf,
BoldItalicFont=timesbi.ttf,
Path=fonts/
]{times.ttf}
\setmainfont{Times New Roman}
\setsansfont{Times New Roman}
\setmonofont{Times New Roman}
\setmainfont[
BoldFont=timesbd.ttf,
ItalicFont=timesi.ttf,
BoldItalicFont=timesbi.ttf,
Path=fonts/
]{times.ttf}
\setsansfont[
BoldFont=timesbd.ttf,
ItalicFont=timesi.ttf,
BoldItalicFont=timesbi.ttf,
Path=fonts/
]{times.ttf}
\setmonofont[
BoldFont=timesbd.ttf,
ItalicFont=timesi.ttf,
BoldItalicFont=timesbi.ttf,
Path=fonts/
]{times.ttf}


%
Expand Down

0 comments on commit 6b989c0

Please sign in to comment.