Skip to content
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

Merged
merged 5 commits into from
Nov 28, 2024

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Nov 28, 2024

Another regression from #754 ...

Needed for #762

@DJMcNab
Copy link
Member Author

DJMcNab commented Nov 28, 2024

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.

@dfrg
Copy link
Contributor

dfrg commented Nov 28, 2024

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.

@DJMcNab
Copy link
Member Author

DJMcNab commented Nov 28, 2024

I have reached a state of greater understanding thanks to #763 (comment)

@DJMcNab
Copy link
Member Author

DJMcNab commented Nov 28, 2024

I now believe this PR is now finally in a good state. Thanks for all the help both!

Copy link
Member

@tomcur tomcur left a 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.

@DJMcNab DJMcNab added this pull request to the merge queue Nov 28, 2024
Merged via the queue into linebender:main with commit d981f0d Nov 28, 2024
17 checks passed
@DJMcNab DJMcNab deleted the restore-underline branch November 28, 2024 16:16
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.

3 participants