5 Commits

Author SHA1 Message Date
7665da5c08 FIX path 2023-10-25 13:43:09 +09:00
630ba71c8f FIX? 2023-10-25 06:05:17 +09:00
ac7e50b940 FIX 2023-10-25 06:05:03 +09:00
5c2ff7aaee Add pdfs fonts 2023-10-25 05:56:25 +09:00
64a5e34538 Additional fix for #3 2023-10-25 05:55:55 +09:00
4 changed files with 52 additions and 3 deletions

View File

@ -40,11 +40,11 @@ pages:
- apt-get update && apt-get install -y calibre --no-install-recommends - apt-get update && apt-get install -y calibre --no-install-recommends
- apt-get update && apt-get install -y fontconfig unzip sudo - apt-get update && apt-get install -y fontconfig unzip sudo
- unzip "./styles/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 && - mkdir -p /etc/fonts/conf.d &&
cp -a ./styles/fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf && cp -a ./fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf &&
fc-cache -fv fc-cache -fv
- sudo corepack enable - sudo corepack enable

View File

@ -11,8 +11,10 @@
"search-pro-fixed" "search-pro-fixed"
], ],
"styles": { "styles": {
"website": "./_styles/website.css" "website": "./_styles/website.css",
"pdf": "./_styles/pdf.css"
}, },
"pdf.fontFamily": "FirgeNerd",
"pdf.fontSize": 16, "pdf.fontSize": 16,
"pdf.paperSize": "a4", "pdf.paperSize": "a4",
"pdf.embedFonts": true "pdf.embedFonts": true

41
src/_styles/pdf.css Normal file
View File

@ -0,0 +1,41 @@
@font-face {
font-family: "FirgeNerd";
src: url("./fonts/woff2/FirgeNerd-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "FirgeNerd";
src: url("./fonts/woff2/FirgeNerd-Bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
}
.book.font-family-1 {
font-family: "FirgeNerd", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.markdown-section p {
font-size: 1.1em;
}
.markdown-section code,
.markdown-section pre {
font-family: "FirgeNerd", monospace;
}
.markdown-section code {
font-size: 0.9em;
}
/* For hints Plguin */
.hints-container {
/* To be fitted */
padding-right: 15px;
}
.hints-alert {
word-break: break-word;
}

View File

@ -30,6 +30,12 @@
} }
/* For hints Plguin */ /* For hints Plguin */
.hints-container {
/* To be fitted */
padding-right: 15px;
}
.hints-alert { .hints-alert {
word-break: break-word; word-break: break-word;
} }