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
Note that different font names might resolve to the same font file. Event normalized font name can't be used as a key for font memoization. Not sure how to uniquely identify fonts (resolved file paths aren't a good choice either) besides hashing loaded glyph paths (not a performant option).
I'm just pointing this out because I believe this step is important for avoiding the situation where font files are duplicated in the export PDF or CSS. Not sure if there's really any good way around this though besides the community authoring packages for fonts like TeX does.
Activity
bluebear94 commentedon May 7, 2024
Working on this right now.
Caellian commentedon Mar 13, 2025
Note that different font names might resolve to the same font file. Event normalized font name can't be used as a key for font memoization. Not sure how to uniquely identify fonts (resolved file paths aren't a good choice either) besides hashing loaded glyph paths (not a performant option).
I'm just pointing this out because I believe this step is important for avoiding the situation where font files are duplicated in the export PDF or CSS. Not sure if there's really any good way around this though besides the community authoring packages for fonts like TeX does.
laurmaedje commentedon Mar 13, 2025
Typst already deduplicates fonts, just by hashing the full bytes.