Artefacts in assembled stretched glyphs
Description
When assembled glyphs are built (via stretch, lr, underbrace or similar), the rendered PNG contains small artefacts where the glyph parts connect. This is especially visible in low resolutions, e.g. in the example for the underbracket docs.
| 300ppi | 1000ppi (only small bumps visible) |
|---|---|
At some zoom levels, this is also be visible in PDF and SVG, probably depending on the viewer (e.g. in VSCode using "vscode-pdf" and "Svg Preview").
Reproduction URL
No response
Operating system
Web app, Windows
Typst version
- [X] I am using the latest version of Typst
The slight overlap is intended by the OpenType MATH spec.
The only real way to solve this would be to merge the parts of the glyph in order to remove the overlap.
We'll see a lot more of this once typst gets variable font support.
The slight overlap is intended by the OpenType MATH spec.
The overlap is intended, but it's not taken into account when anti-aliasing (it's done on each part individually), which can cause ugly results.
Closely related issue
https://github.com/typst/typst/issues/4624