-
Notifications
You must be signed in to change notification settings - Fork 121
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
Restore underline and strikethrough in render_text #763
Conversation
Another regression from linebender#754 ...
masonry/src/widget/screenshots/masonry__widget__label__tests__strikethrough_label.png
Outdated
Show resolved
Hide resolved
I've removed the half-width offset, which has worked. However, I am extremely confused about why it has worked... The only assumption I think I'm making is that the stroked path is the center line of the stroke? Is that perhaps incorrect. |
Oh, I didn't catch that you were using a stroke rather than a rect fill. Yes, strokes are expanded by half-width from the center line. |
I have reached a state of greater understanding thanks to #763 (comment) |
Co-authored-by: Tom Churchman <[email protected]>
I now believe this PR is now finally in a good state. Thanks for all the help both! |
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.
This looks right to me.
Another regression from #754 ...
Needed for #762