Does a list exist with all fonts included in the Typst compiler? I would like to know which fonts are always available, both in the Web App and locally (through the CLI).
In the online editor there seems to be autocompletion for that
And probably with tinymist (the language server for vs code and other editors) as well.
Also this section in the docs for the font parameter of the text function
fontSettable
A font family name or priority list of font family names.
When processing text, Typst tries all specified font families in order until it finds a font that has the necessary glyphs. In the example below, the font
Inria Serifis preferred, but since it does not contain Arabic glyphs, the arabic text usesNoto Sans Arabicinstead.The collection of available fonts differs by platform:
- In the web app, you can see the list of available fonts by clicking on the “Ag” button. You can provide additional fonts by uploading
.ttfor.otffiles into your project. They will be discovered automatically. The priority is: project fonts > server fonts.- Locally, Typst uses your installed system fonts or embedded fonts in the CLI, which are
Libertinus Serif,New Computer Modern,New Computer Modern Math, andDejaVu Sans Mono. In addition, you can use the--font-pathargument orTYPST_FONT_PATHSenvironment variable to add directories that should be scanned for fonts. The priority is:--font-paths> system fonts > embedded fonts. Runtypst fontsto see the fonts that Typst has discovered on your system. Note that you can pass the--ignore-system-fontsparameter to the CLI to ensure Typst won’t search for system fonts.Default:
"libertinus serif"
Thank you!
In both the web app editor and with tinymist, many more fonts are shown which are available on the system. But your second post answered my question!
Can you maybe mark it as the answer?
I already did actually ![]()
[quote=“Mc-Zen, post:1, topic:1510, full:true”]
Does a list exist with all fonts included in the Typst compiler?[/quote]
You can get the list yourself at any time if you have Typst installed locally:
$ typst fonts --ignore-system-fonts
DejaVu Sans Mono
Libertinus Serif
New Computer Modern
New Computer Modern Math
