Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Han Sans CN -> Noto Sans CJK SC #4

Merged
merged 3 commits into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y texlive-xetex wget alien inkscape
sudo apt-get install -y texlive-xetex wget alien inkscape \
texlive-lang-chinese fonts-noto-cjk

- name: Install fonts
run: |
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/32/Everything/aarch64/os/Packages/a/adobe-source-han-sans-cn-fonts-2.001-3.fc32.noarch.rpm
sudo alien -i adobe-source-han-sans-cn-fonts-2.001-3.fc32.noarch.rpm
sudo cp -r assets/courier/ /usr/share/fonts/courier/

- name: Make all
Expand Down
7 changes: 5 additions & 2 deletions LatexConfig.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
\usepackage[cm-default]{fontspec}
\usepackage{xeCJK}

\setCJKmainfont{Source Han Sans CN}
\setCJKmonofont{Source Han Sans CN}
% https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755385#26
%\setCJKmainfont{Source Han Sans CN}
%\setCJKmonofont{Source Han Sans CN}
\setCJKmainfont{Noto Sans CJK SC}
\setCJKmonofont{Noto Sans CJK SC}
\setmainfont{DejaVu Sans}
\setmonofont{Courier 10 Pitch}

Expand Down
Loading