Skip to main content

Fonts

bkhtmltopdf comes with the following built-in Google Fonts by default, supporting multilingual typesetting. All fonts are free for commercial use.

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.