mirror of
https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io.git
synced 2025-06-20 12:55:36 +00:00
Replace all ebooks' fonts with FirgeNerd font
This commit is contained in:
@ -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/
|
||||
|
@ -11,7 +11,6 @@
|
||||
"search-pro-fixed"
|
||||
],
|
||||
"pdf.fontSize": 16,
|
||||
"pdf.fontFamily": "FirgeNerd",
|
||||
"pdf.paperSize": "a4",
|
||||
"pdf.embedFonts": true
|
||||
}
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user