RazrFalcon / rustybuzz

A complete harfbuzz's shaping algorithm port to Rust
MIT License
498 stars 34 forks source link

Creating Face from ttf_parser::Face #34

Closed lain-dono closed 3 years ago

lain-dono commented 3 years ago

Mostly solves #23. via implementing Font::from_face and AsRef/AsMut to ttf_parser::Face and Deref/DerefMut to ttf_parser::FaceTables.

All this allows use of Face as a drop-in replacement for ttf_parser::Face.

In addition, I updated the dependencies and made Face::units_per_em public.

RazrFalcon commented 3 years ago

Thanks!