Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type/sfml: Disregard fonts that can't render ASCII #1104

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

robinlinden
Copy link
Owner

Before:
before, ugly gaps in the text

After:
after, looks great, no gaps

("Noto" was resolved to "Noto Kufi Arabic" which doesn't have an 'A' glyph.)

This moves the hack from a447a4f one
level down, so we now drop these fonts before they reach the gfx system.

This fixes an issue where we could end up measuring text with a font
that would later be dropped by the gfx system, leading to a relayout
being needed for the rendering to look correct.
@robinlinden robinlinden merged commit 17b90b3 into master Nov 19, 2024
21 checks passed
@robinlinden robinlinden deleted the type-sfml-font-selection branch November 19, 2024 19:22
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