-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use font-provided metadata to determine glyph baseline position #191
Comments
Why did you close this? |
Not sure, reopening |
Should this move to fontserver? |
@ansis Not sure if this ticket is still relevant, but Harfbuzz is not necessary (FreeType is sufficient) for getting |
re-opening because this is still hardcoded in -js: mapbox-gl-js/js/symbol/shaping.js Line 33 in ec62ab8
|
@mikemorris https://github.com/mapbox/node-fontnik/pull/50/files got merged into master but master doesn't have the ascender version? |
@ansis Looks like we never updated the PBF spec in https://github.com/mapbox/node-fontnik/blob/master/proto/glyphs.proto, I started work on this in mapbox/node-fontnik#97 but it never got merged. |
Upgrade mapbox-gl-js to 0.13.1
Inadvertently closed due to some 🌳 history magic — reopening. |
Closing as stale. I haven't seen this become a practical concern yet. |
Assuming that this will be subsumed by @ChrisLoer's push on fonts + harfbuzz. |
Ah! Good point. We can keep this open to track this aspect of our text shaping work. |
@ChrisLoer @ansis @kkaefer Is this something we can move on before switching to Harfbuzz? What would it require to accomplish this? It continues to be a visible issue:
Please let me know if there's anything I can do to help resolve this 🙏 |
@nickidlugash I think this is something we can work on without Harfbuzz. It does unfortunately require server-side changes -- i.e. we need to get node-fontnik to send the metadata down to the client. Hopefully we can add that to the glyph PBF is a backward compatible way, and just use the baseline if it's there, otherwise fall back to our hardwired value. |
Unearthing this issue as deriving this from a fonts metadata instead of using a fixed value would greatly improve labels using mixed font families.
@springmeyer wanted to put this on your radar. The only related issue I saw in that project was mapbox/node-fontnik#51 |
@tristen There's an abandoned PR in which I started most of the work for this at mapbox/node-fontnik#97 |
Re-earthing @mikemorris's initial work in a new pr mapbox/node-fontnik#160. That should address the downstream work to enable this. |
@kkaefer, is this something harfbuzz can produce?
Otherwise, the median bottom edge would probably be a good approximation.
The text was updated successfully, but these errors were encountered: