-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix TextLayout.Width calculation (#18305) #18310
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
Conversation
You can test this PR using the following package version. |
|
@cla-avalonia agree |
/cc @amwx if you want to test the build from this PR |
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
This looks so much cleaner.
What is the current behavior?
TextLayout.UpdateMetrics
was incorrectly calculating the Width for certain fonts. This caused a breaking change making11.2.3+
not usable with certain projects.What is the updated/expected behavior with this PR?
The Width should be now correctly calculated.
How was the solution implemented (if it's not obvious)?
Separate the update of the bounds from the different metrics updated (
Width
/Height
...etc.)Checklist
Breaking changes
None
Obsoletions / Deprecations
None
Fixed issues
Fixes #18305
Fixes #17809