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

Subpixel glyph positioning and layout linearity #1921

Merged
merged 2 commits into from Jun 26, 2023

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Jun 20, 2023

Depends on pop-os/cosmic-text#143.

The changes in this PR leverage the layout linearity properties from cosmic-text to unify the measurement and rendering caches in our text pipelines, offsetting and scaling glyphs during rendering.

This should fix any layout inconsistencies between measuring (in logical units) and rendering (in physical units).

Fixes #308.

... for offsetting and scaling text
@hecrj hecrj added bug Something isn't working text layout rendering labels Jun 20, 2023
@hecrj hecrj added this to the 0.10.0 milestone Jun 20, 2023
@hecrj hecrj merged commit ef18ecf into master Jun 26, 2023
19 checks passed
@hecrj hecrj deleted the subpixel-glyph-positioning branch June 26, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working layout rendering text
Projects
None yet
Development

Successfully merging this pull request may close these issues.

leading newline makes Text disappear
1 participant