Skip to content

Fixed text rendered incorrectly with embedded font - #79

Merged
gentledepp merged 1 commit into
developfrom
fix/13353_displaced_text
Jul 29, 2026
Merged

Fixed text rendered incorrectly with embedded font#79
gentledepp merged 1 commit into
developfrom
fix/13353_displaced_text

Conversation

@dariostrm

Copy link
Copy Markdown
Collaborator
  • In case an svg had an embedded font family, but it did not contain a glyph for all characters, those characters would be drawn as wider whitespace.
  • The fix was to use a fallback font in case the primary one does not contain a glyph for a character

Before
bug

After
expected

The svg used in the screenshots:
https://gist.github.com/dariostrm/a73932214f1749039ef37491aac94332

- In case an svg had an embedded font family, but it did not contain a glyph for all characters, those characters would be drawn as wider whitespace.
- The fix was to use a fallback font in case the primary one does not contain a glyph for a character
@gentledepp
gentledepp merged commit f6ead7e into develop Jul 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants