-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add baseline to font measurement #2320
Conversation
Update RichText to realign lines where the baseline varies across the row
Sorry I keep coming to this and fixing a naming then we find some more. |
Sorry, it is quite difficult to navigate through 537 files. I thought that when FontMetrics rename was accepted, fontSizeCache would be renamed as it seems to be the more logical change. Same in |
Not a problem, the font painter names fixed but the cache keys are size/style not metric so I think that one is OK. |
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.
LGTM! :) Sorry any inconveniences and delays.
Not at all, thanks for your help getting this over the line. |
Description:
Add font information to (driver) text measurement.
The
MeasureText
call remains consistent so no public API breakage (except driver, as discussed elsewhere).There could be a new version of that to expose baseline info, but I don't yet see the need.
What this also did was fix precision of text calculations so a lot of tests/images have changed slightly.
Fixes #1859
Checklist: