Skip to content

Fix negative-width diacritics handling#50

Merged
mourner merged 2 commits intomainfrom
fix-negative-diacritic
Feb 3, 2023
Merged

Fix negative-width diacritics handling#50
mourner merged 2 commits intomainfrom
fix-negative-diacritic

Conversation

@mourner
Copy link
Member

@mourner mourner commented Feb 3, 2023

Some diacritic marks in Hiragana can't be combined with characters through string.normalize(), so they'll be processed as separate characters by TinySDF. This PR makes sure such characters never produce negative-width metrics, so that the text rendering code doesn't break down the line.

@mourner mourner added the bug label Feb 3, 2023
@mourner mourner requested a review from stepankuzmin February 3, 2023 16:38
@mourner mourner merged commit 939a28e into main Feb 3, 2023
@mourner mourner deleted the fix-negative-diacritic branch February 3, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants