Skip to content

Commit

Permalink
Merge pull request #4 from lxylxy123456/noto
Browse files Browse the repository at this point in the history
Source Han Sans CN -> Noto Sans CJK SC
  • Loading branch information
lxylxy123456 authored Jul 23, 2023
2 parents d2fa473 + c4b44d6 commit 4452075
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
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

0 comments on commit 4452075

Please sign in to comment.