3 Commits

Author SHA1 Message Date
f965677403 Replace all ebooks' fonts with FirgeNerd font 2023-10-15 03:54:09 +09:00
bb93c8cca2 Add fonts.conf 2023-10-15 03:39:21 +09:00
2872b3b432 Update 2023-10-15 02:45:15 +09:00
6 changed files with 20 additions and 3 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

@ -1,8 +1,7 @@
{
"root": "./src",
"title": "「モダンからはじめる プログラミング生活!」",
"author": "Satsuki Akiba <anosatsuk124@gmail.com>",
"authorShort": "Satsuki Akiba",
"author": "Satsuki Akiba",
"language": "ja",
"plugins": [
"anchors",
@ -12,7 +11,6 @@
"search-pro-fixed"
],
"pdf.fontSize": 16,
"pdf.fontFamily": "ZenMaruGothic",
"pdf.paperSize": "a4",
"pdf.embedFonts": true
}

BIN
fonts/FirgeNerd_v0.2.0.zip (Stored with Git LFS) Normal file

Binary file not shown.

9
fonts/fonts.conf Normal file
View File

@ -0,0 +1,9 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="pattern">
<edit name="family" mode="assign">
<string>FirgeNerd</string>
</edit>
</match>
</fontconfig>

2
public/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File