You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TrueType fonts with 65536 glyphs render tofus in PNG and SVG export #8434
changed the title [-]TrueType fonts with 65536 render tofus in PNG and SVG export[/-][+]TrueType fonts with 65536 glyphs render tofus in PNG and SVG export[/+]on Jun 4, 2026
Is it possible to emit a warning or ignore such fonts?
Today one more person encountered this issue when using tinymist VS Code preview (it depends on SVG, so it's affected). This is at least the fourth time I know.
This issue creates a lot of confusion due to the following reasons:
SVG is broken but PDF is okay, so it's not easy to reproduce.
Source Han Sans/Serif release variable TTFs, variable OTFs, and static OTFs. And Typst selects variable versions over static versions.
As a result, if you've installed the variable TTF, then installing static OTF won't circumvent the problem unless you uninstall the variable TTF.
An extremely confusing special case is SourceHanSerif-VF.ttf.ttc/SourceHanSans*-VF.ttf.ttc. Each *.ttc collection file packs multiple variable TTF typefaces, including Source Han Sans/Serif SC VF. In other words, a static OTF with the SC suffix might be shadowed by a varaible TTF file whose file name doesn't even contain the SC suffix.
(The official web app isn't affected, because Source Han Sans/Serif VF are not built-in, and they are too large to upload. See typst/webapp-issues#894.)
Activity
laurmaedje commentedon Jun 4, 2026
Workaround: Use OTF versions of fonts instead, if available.
[-]TrueType fonts with 65536 render tofus in PNG and SVG export[/-][+]TrueType fonts with 65536 glyphs render tofus in PNG and SVG export[/+]YDX-2147483647 commentedon Jul 6, 2026
Is it possible to emit a warning or ignore such fonts?
Today one more person encountered this issue when using tinymist VS Code preview (it depends on SVG, so it's affected). This is at least the fourth time I know.
This issue creates a lot of confusion due to the following reasons:
SVG is broken but PDF is okay, so it's not easy to reproduce.
Source Han Sans/Serif release variable TTFs, variable OTFs, and static OTFs. And Typst selects variable versions over static versions.
As a result, if you've installed the variable TTF, then installing static OTF won't circumvent the problem unless you uninstall the variable TTF.
An extremely confusing special case is
SourceHanSerif-VF.ttf.ttc/SourceHanSans*-VF.ttf.ttc. Each*.ttccollection file packs multiple variable TTF typefaces, including Source Han Sans/Serif SC VF. In other words, a static OTF with the SC suffix might be shadowed by a varaible TTF file whose file name doesn't even contain the SC suffix.(The official web app isn't affected, because Source Han Sans/Serif VF are not built-in, and they are too large to upload. See typst/webapp-issues#894.)
laurmaedje commentedon Jul 6, 2026
We'll migrate away from ttf-parser anyways during this release cycle. See #8172.