-
Notifications
You must be signed in to change notification settings - Fork 4
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 too tall? #4
Comments
I wonder if this is a consequence of including Thai and Vietnamese in the same fontstack. Pan-Unicode fonts tend to have tall line heights for this reason (especially if the font format lacks a mechanism for ascender height above cap height). |
I've been debugging this, and I suspect the problem is actually with the space character being too tall. |
In 1ec5/maplibre-gl-js#1, I was finding that GL JS hard-codes a line height from Arial Unicode MS regardless of the font and ended up removing these fudge factors when implementing all-local text rendering: 1ec5/maplibre-gl-js@b6df63e. Arial Unicode MS is the default font when |
We're using the Americana font stack over at OpenTrailMap and have run into some issues with the default line height. It seems that it may be too tall, as text is not centered on lines by default. This results in unequal padding when offsetting text from a line, depending on whether it's rendered above or below the line. This behavior is the same in both Firefox and Safari.
The text was updated successfully, but these errors were encountered: