Skip to content

🎨: fix attr based sizeFor() measurement in font metric#1734

Merged
linusha merged 1 commit intomainfrom
fix/text-attr-measuring
Mar 5, 2025
Merged

🎨: fix attr based sizeFor() measurement in font metric#1734
linusha merged 1 commit intomainfrom
fix/text-attr-measuring

Conversation

@merryman
Copy link
Member

@merryman merryman commented Mar 3, 2025

Fixes an issue with #1717. Among other things, it cause the buttons in the properties side panel to look squashed:
screenshot-measure-bug

We previously did not take into account the local font size when measuring the character with respective style attributes, which caused incorrect bounds measurements.
@merryman merryman requested a review from linusha March 4, 2025 11:05
@linusha linusha merged commit b260367 into main Mar 5, 2025
4 checks passed
@linusha linusha deleted the fix/text-attr-measuring branch March 5, 2025 20:31
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