[typst.fonts]
Configure font search directories for the Typst compiler and SVG rasterization.
These settings apply to Typst compilation (PDF export, SVG frames) and SVG text rasterization in site hooks or @tola-scripts/image#resize. Web fonts loaded by browsers belong in [assets] with CSS @font-face.
Tola searches paths first, then module fonts in the order listed in modules. When two fonts match equally well, the earlier source wins. Run tola inspect fonts (or tola inspect fonts --json) to check resolved family names and origins.
--purestill allows Tola’s embedded fonts, but rejectssystem = trueand--font-path.- Pass
--font-path DIRto prepend a search directory for one run, or--ignore-system-fontsto skip system fonts. tola vendordoes not copy compiler fonts; keep project fonts inside the repository underpaths.
Keys
paths
Site-relative directories scanned recursively for compiler fonts.
modules
Module aliases whose [typst] fonts directories are loaded after paths. Pass a string alias or { module = "alias", rename = { "Old Family" = "New Family" } } (case-insensitive match) to register all weights and styles of a family under a distinct name.
system
Include operating-system fonts during compilation. Rejected under --pure.
Examples
Use project and module fonts without system fonts
[typst.fonts]
paths = ["static/typst-fonts"]
modules = [
"theme",
{ module = "cjk", rename = { "IBM Plex Sans" = "CJK Plex Sans" } },
]
system = false