alexheretic / ab-glyph

Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
Apache License 2.0
372 stars 24 forks source link

adding `neutral` function to `PxScale` #95

Closed TornaxO7 closed 10 months ago

TornaxO7 commented 10 months ago

I think that this might be useful. But I can also understand if it's not. (just a suggestion).

alexheretic commented 10 months ago

I'm not sure I understand the motivation for this, why is a height of 1px "neutral"?

Note you can already use PxScale::from(1.0) which is as terse yet arguably more readable.

TornaxO7 commented 10 months ago

Note you can already use PxScale::from(1.0) which is as terse yet arguably more readable.

ooooooh. Didn't knew that. Thanks!