Improve rusttype usage
This commit is contained in:
parent
a4959bbe7b
commit
419f2dc612
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue