alexheretic / ab-glyph

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

Add width and height info to GlyphImage #87

Closed EHfive closed 1 year ago

EHfive commented 1 year ago

This is breaking as it adds 2 new struct fields.

Also improved the doc of data field.

A non-breaking approach could be add a new struct GlyphImage2 whose information are exposed via accessor methods thus can be extended as needed. edit: I would go this way.

alexheretic commented 1 year ago

Lets go with the non-breaking approach. I'll remove the deprecated stuff in the next breaking change.