Improve rusttype usage

This commit is contained in:
Jeremy Soller 2022-10-12 13:51:50 -06:00
parent a4959bbe7b
commit 419f2dc612
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ impl<'a> FontMatches<'a> {
let inner = ab_glyph::GlyphId(info.glyph_id as u16);
#[cfg(feature = "rusttype")]
let inner = font.rusttype.glyph(rusttype::GlyphId(info.glyph_id as u16));
let inner = rusttype::GlyphId(info.glyph_id as u16);
#[cfg(feature = "swash")]
let inner = info.glyph_id as swash::GlyphId;