Replace all ebooks' fonts with FirgeNerd font

This commit is contained in:
2023-10-15 03:54:09 +09:00
parent bb93c8cca2
commit f965677403
3 changed files with 5 additions and 20 deletions

View File

@ -43,8 +43,13 @@ pages:
- unzip "./fonts/*.zip" -d /usr/share/fonts/ - unzip "./fonts/*.zip" -d /usr/share/fonts/
&& fc-cache -fv && fc-cache -fv
- mkdir -p /etc/fonts/conf.d &&
cp -a ./fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf &&
fc-cache -fv
- sudo corepack enable - sudo corepack enable
- sudo -u node pnpm install - sudo -u node pnpm install
- sudo -u node env LANG=ja_JP.UTF-8 pnpm run build - sudo -u node env LANG=ja_JP.UTF-8 pnpm run build
- cp -a _book/. public/ - cp -a _book/. public/

View File

@ -11,7 +11,6 @@
"search-pro-fixed" "search-pro-fixed"
], ],
"pdf.fontSize": 16, "pdf.fontSize": 16,
"pdf.fontFamily": "FirgeNerd",
"pdf.paperSize": "a4", "pdf.paperSize": "a4",
"pdf.embedFonts": true "pdf.embedFonts": true
} }

View File

@ -2,25 +2,6 @@
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig> <fontconfig>
<match target="pattern"> <match target="pattern">
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="assign">
<string>FirgeNerd</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="assign">
<string>FirgeNerd</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="assign"> <edit name="family" mode="assign">
<string>FirgeNerd</string> <string>FirgeNerd</string>
</edit> </edit>