Replace all ebooks' fonts with FirgeNerd font

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

View File

@ -43,8 +43,13 @@ pages:
- unzip "./fonts/*.zip" -d /usr/share/fonts/
&& 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 -u node pnpm install
- sudo -u node env LANG=ja_JP.UTF-8 pnpm run build
- cp -a _book/. public/

View File

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

View File

@ -2,25 +2,6 @@
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<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">
<string>FirgeNerd</string>
</edit>