You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I don't want multiple px scale concepts inside ab-glyph. One is ok, and you should be able to convert that to any other.
Changing how it's done would clearly be breaking.
It would be nice to handle this in the least surprising & most common way as default.
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
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: