diff --git a/crates/epaint/src/text/font.rs b/crates/epaint/src/text/font.rs index f07fc98e7..51cd88024 100644 --- a/crates/epaint/src/text/font.rs +++ b/crates/epaint/src/text/font.rs @@ -82,7 +82,7 @@ pub struct FontImpl { tweak: FontTweak, glyph_info_cache: ahash::HashMap, glyph_alloc_cache: - ahash::HashMap<(GlyphInfo, OrderedFloat, OrderedFloat), GlyphAllocation>, + ahash::HashMap<(ab_glyph::GlyphId, OrderedFloat, OrderedFloat), GlyphAllocation>, } trait FontExt { @@ -263,7 +263,7 @@ impl FontImpl { }; let entry = match self.glyph_alloc_cache.entry(( - glyph_info, + glyph_id, metrics.px_scale_factor.into(), metrics.pixels_per_point.into(), )) {