mirror of
https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io.git
synced 2025-06-20 21:05: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/
|
- 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/
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user