Skip to content

Position text relative to baseline#2109

Merged
niklasvh merged 2 commits intoniklasvh:masterfrom
lucyluu22:fix-text-baseline
Jul 11, 2021
Merged

Position text relative to baseline#2109
niklasvh merged 2 commits intoniklasvh:masterfrom
lucyluu22:fix-text-baseline

Conversation

@lucyluu22
Copy link
Copy Markdown
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
Copy Markdown

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