-
Notifications
You must be signed in to change notification settings - Fork 58
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
Problem upgrading to 2.x version in CJK fonts #44
Comments
The related change was introduced in v1.2.4, it was just not marked as breaking because it used an optional metrics pathway (which became the default later, in v2). See #30. The adjustment GL JS uses is basically
|
Thanks for the info and the super fast response! |
Hi,
We have upgraded tiny-sdf from version 1.x to 2.x.
As part of the upgrade we understood we need to use the return value of the draw method to get the actual values, which was a breaking change from version 1.x
We did the required changes but now we see that there's an issue with the top offset returned from tiny-sdf as can be seen in the following issue:
maplibre/maplibre-gl-js#1002
Can you please elaborate what should be the right way to use this library to get a correct value for the offset top for CJK fonts?
Thanks again for all the hard work invested in this library!
The text was updated successfully, but these errors were encountered: