Fonts
bkhtmltopdf comes with the following built-in Google Fonts by default, supporting multilingual typesetting. All fonts are free for commercial use.
- Inter
- Roboto
- Noto Serif SC
- Noto Serif TC
- Noto Serif KR
- Noto Serif JP
- Noto Serif Tibetan
- Noto Color Emoji
Example
Specify in CSS:
body {
font-family: 'Noto Serif SC', serif; /* Chinese serif font */
}
h1 {
font-family: 'Inter', sans-serif; /* English sans-serif font */
}
Custom Fonts
If you need other fonts, please submit a GitHub issue.
warning
Custom uploaded fonts (e.g., TTF/OTF) are not supported to avoid licensing and security issues.