alexheretic / ab-glyph

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

Workaround fix for ttf non-empty outlines with zero bboxes #30

Closed alexheretic closed 3 years ago

alexheretic commented 3 years ago

Add a workaround fix for outlines that have a malformed zero-sized bounding box. Recalculates a bounding box from the outline curves.

Resolves #29 Upstream https://github.com/RazrFalcon/ttf-parser/issues/49