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
The microtype package in LaTeX provides several microtypographical features. The two main ones, enabled by default in pdfTeX and luaTeX, are protrusion and expansion.
Typst already supports a (very) limited form of protrusion, and there's an existing issue concerning improving this #261
However, expansion is currently completely absent from Typst, as far as I'm aware.
Automatic font expansion can subtly (default max in microtype is 2%) change the width of a font (through stretching) in order to achieve better typesetting results.
Use Case
Font expansion can improve improve text regularity and greatly reduce the need for hyphenation.
Reacted by ssotoen, Eîar Abramski-Kronenberg, David Armstrong, Balthild, hurzl, Nino Annighoefer, Yann Herklotz, diquah, burmistr22, Ivan Ermakov and 28 more
Note that microtype does font expansion by directly modifying glyphs. While this does work and provides a reasonable fallback, using the width axis in variable fonts that have it would be ideal.
Note that microtype does font expansion by directly modifying glyphs. While this does work and provides a reasonable fallback, using the width axis in variable fonts that have it would be ideal.
Yes, that would be a better option for variable fonts. However, I do not think all of them have a width axis.
Activity
eclecticfluff commentedon Aug 7, 2024
Note that microtype does font expansion by directly modifying glyphs. While this does work and provides a reasonable fallback, using the width axis in variable fonts that have it would be ideal.
Enivex commentedon Aug 7, 2024
Yes, that would be a better option for variable fonts. However, I do not think all of them have a width axis.
(Also typst does not yet support variable fonts.)
corneliusroemer commentedon May 5, 2025
The microtype user manual is a good resource for inspiration.
Krasjet commentedon Oct 10, 2025
I'll add some more resources in case someone wants to take on the glyph expansion part:
omentic commentedon Jun 5, 2026
Support for variable fonts has just been merged (#8425) 🎉