-
Notifications
You must be signed in to change notification settings - Fork 24
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
Change default pixel scaling method #15
Labels
breaking-change
A change that would require a breaking semver bump
Comments
font-size should be in pixels-per-em. If users want something else they can do the calculations themselves from metrics in the head/os2 tables (not sure if ab_glyph exposes these) for example, I use cap-height to size UI buttons. Though, I am not using ab_glyph because it does not support opentype features, but I am using ab_glyph_rasterizer which has a better API than anything else on crates.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current
PxScale
method was inherited from rusttype and defines the pixel height of glyphs in pixels. There are different ways that users would expect this work.My current thoughts:
Related: #11, #14
The text was updated successfully, but these errors were encountered: