PistonDevelopers / graphics

A library for 2D graphics, written in Rust, that works with multiple back-ends
MIT License
479 stars 55 forks source link

Update rusttype to 0.9 #1145

Closed adumbidiot closed 3 years ago

adumbidiot commented 3 years ago

Updating rusttype to 0.9 removes the dependency on stb_truetype, which is deprecated.

adumbidiot commented 3 years ago

Oops, I forgot to run tests with all features on.

rusttype::FontCollection no longer exists, so I load bytes directly using Font, using the appropriate methods. ScaledGlyphs also appear to no longer have a shape method. It appears to have been replaced by the method build_outline. Since it was used only for testing glyph validity, I built an OutlineBuilder that does nothing for testing the validity of glyphs.

bvssvni commented 3 years ago

Merging

bvssvni commented 3 years ago

Thanks!