Repository navigation
Fix raster glyph positioning and sizing in PNG and SVG export - #8440
Merged
Merged
Conversation
saecki
force-pushed
the
fix-glyph-stretch
branch
2 times, most recently
from
June 5, 2026 14:28
6956885 to
31800f8
Compare
saecki
marked this pull request as draft
June 5, 2026 14:42
saecki
force-pushed
the
fix-glyph-stretch
branch
2 times, most recently
from
June 5, 2026 16:01
236bbd1 to
f72c1b4
Compare
Member
Author
|
6ba5f79ad09028de045047c55b489741_issue-8372-stretched-glyphs.pdf |
saecki
marked this pull request as ready for review
June 5, 2026 17:27
Member
Author
By replicate the same behavior as krilla
laurmaedje
enabled auto-merge
June 9, 2026 11:47
Merged
Myriad-Dreamin
pushed a commit
to Myriad-Dreamin/tinymist
that referenced
this pull request
Jun 10, 2026
Nightly Release at [dev: add crate-local mock harnesses for vfs, world, and project tests (#2503)](4e93d9f), using [ParaN3xus/typst branch nightly](ParaN3xus/typst@6743cf2), a.k.a. [typst/typst Fix raster glyph positioning and sizing in PNG and SVG export (typst/typst#8440)](typst/typst@d654845).
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #8372.
This even preceeded #7679 (at least for PNGs). This is in line with the other
draw_glyphfunctions, which also don't scale their offsets.The aspect ratio is now applied to the width of the raster image not the height. Which makes sense to me because it's computed fromwidth / height. Also it seemed like the height of the glyph should be retained when stretching it.