-
Notifications
You must be signed in to change notification settings - Fork 28
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
Underline & Strikethrough handling not documented well #142
Comments
Parley won't emulate underline drawing for you; you need to wire it up yourself using the offset provided by See for example the relevant code in Masonry: https://github.com/linebender/xilem/blob/771eb2f02f3d6629b78fe233fdec76a563ddbbb2/masonry/src/text/render_text.rs#L86-L119 Note that this code is for Parley 0.1.0, although I don't believe that this part has changed. Our documentation of an expected integration isn't very thorough. |
Thank you for your explanation! |
@spirali I think it is reasonable to keep this open and change it to indicate that we need to improve the documentation. |
Ok. Btw: I think that it would be nice to put a simple implementation into examples |
Totally agree. I made those examples, and the only reason that this code is not included as part of them is because I also missed the fact that it was necessary! |
This is related to #142.
Underline and strikethrough does not draw any line.
I have tried enable it just by:
or setting all properties:
in both cases, the text is drawn but without the decoration. I have both tested
main
branch and version0.2.0
.The text was updated successfully, but these errors were encountered: