-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
API Clarifications #2
Comments
You are correct about As for the units, font size ( |
Great, that's really helpful and should be enough for me to continue working with this. Thanks a lot |
A few things came up for me when trying to use this package and I was hoping someone could lend a hand. I'm using the JSON output and am confused about the
planeBounds
andatlasBounds
fields. I think atlas bounds are the pixel space coordinates in the texture for a given glyph and I can calculate uvs using atlasBounds divided by atlas dimensions. Is this correct?Secondly I have no idea what
planeBounds
is for, I was looking for a description in the docs but didn't see anything. Could you give me a quick explaination?Lastly, I'm trying to figure out the relationship between
emRange
,pixelRange
, and size in ems. What I'd like to do is generate a font at a given point size but after tinkering a while I didn't figure out how to do this, could you please point me in the right direction?Thanks! By the way I'm really impressed with the atlas generation performance, Unity's TextMeshPro takes up to 30 seconds to build an atlas but msdf-atlas-gen is around 100ms for the same font.
The text was updated successfully, but these errors were encountered: