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

Line height in EMs #13

Open
bashaus opened this issue Apr 20, 2018 · 1 comment
Open

Line height in EMs #13

bashaus opened this issue Apr 20, 2018 · 1 comment

Comments

@bashaus
Copy link
Contributor

bashaus commented Apr 20, 2018

We're having some problems with this library when using text that is all in uppercase, letters which uses non-English characters (e.g.: À, A, Â, Ä, etc.). Can we measure line height in EMs instead of the actual height - and then use lineSpacing when needed?

@tkrkt
Copy link
Owner

tkrkt commented Apr 27, 2018

That's a good idea!

Since drawing needs to calculate the distance from the baseline, the options will require acsent and desent instead of lineHeight.
ss

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

No branches or pull requests

2 participants