Skip to content

Skia: Fix no-wrap still wrapping text sometimes #8138

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tronical
Copy link
Member

Fixes #7080

@tronical tronical requested a review from ogoffart April 14, 2025 10:01
Copy link
Member

@ogoffart ogoffart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know enough the skia api to understand this.
What's the effect of layouting twice?
Why not just layouting once with the f32::MAX?

@tronical
Copy link
Member Author

You're right, with no-wrap that actually seems simpler. I don't recall why my mind insisted on laying out twice. Let's go with your version. I'll adjust :)

@tronical tronical force-pushed the simon/skia-no-wrap branch from 80aea5a to 443dcc5 Compare April 15, 2025 09:43
@ogoffart
Copy link
Member

Does this draw outside of the bounds? Should there be a clip applied?

Does center and right alignment still works?

@tronical
Copy link
Member Author

Ok, so this is indeed overall a little trickier, laying with max width will require manual compensation for the alignment against f32::Max when drawing. Something for next week.

@tronical tronical marked this pull request as draft April 22, 2025 09:45
@tronical tronical force-pushed the simon/skia-no-wrap branch from 443dcc5 to 57fffca Compare April 22, 2025 09:45
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.

Skia: wrap: no-wrap (the default) still wraps
2 participants