From 6b3a8335fe9a7f668ce863ff1510fa268b463fd7 Mon Sep 17 00:00:00 2001 From: Tong Hui Date: Mon, 10 Oct 2016 02:28:42 +0800 Subject: replace with FandolSong and FandolKai --- .travis.yml | 2 ++ pdf/template.tex | 13 ++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6f640cc..f1429bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ before_script: - sudo apt-get update - "./install.latex.ubuntu.sh" - wget https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb + - wget -c http://mirrors.ctan.org/fonts/fandol/FandolSong-Bold.otf http://mirrors.ctan.org/fonts/fandol/FandolKai-Regular.otf http://mirrors.ctan.org/fonts/fandol/FandolSong-Regular.otf + - mv *.ttf /usr/share/fonts/ - sudo dpkg -i *.deb script: diff --git a/pdf/template.tex b/pdf/template.tex index 8d1688b..cd77fa2 100644 --- a/pdf/template.tex +++ b/pdf/template.tex @@ -97,14 +97,17 @@ framexleftmargin=20pt % 设置中文字体 \setCJKmainfont [ - %BoldFont = WenQuanYi Micro Hei, + %BoldFont = FandolSong-Bold, BoldFont = Noto Sans CJK SC, % uncomment for release build - ItalicFont = AR PL KaitiM GB, + ItalicFont = FandolKai, + %ItalicFont = AR PL KaitiM GB, ] - {AR PL SungtiL GB} -\setCJKsansfont{Noto Sans CJK SC} % uncomment for release build + %{AR PL SungtiL GB} + {FandolSong} +\setCJKsansfont{Noto Sans CJK SC} %\setCJKsansfont{WenQuanYi Micro Hei} -\setCJKmonofont{Noto Sans Mono CJK SC} +\setCJKmonofont{WenQuanYi Micro Hei} +%\setCJKmonofont{Noto Sans Mono CJK SC} % uncomment for release build %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 使用 DejaVu Sans 显示 ⚠ ☢ ☠ ✔ 这四个 dingbats 字符 -- cgit v1.2.3