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

Position text relative to baseline #2109

Merged
merged 2 commits into from
Jul 11, 2021

Conversation

lucyluu22
Copy link
Contributor

Summary

Currently text position is calculated by using the absolute bounding height and placing it at the bottom. This causes fonts to be misaligned, as well as underlines being misplaced with some fonts too. Using the baseline is far more consistent across fonts.

See this fiddle

@calnholt
Copy link

calnholt commented Apr 7, 2021

@niklasvh Would love to see this merged

@niklasvh niklasvh merged commit 85f79c1 into niklasvh:master Jul 11, 2021
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