diff --git a/crates/horizon-client/src/font.rs b/crates/horizon-client/src/font.rs index a25568df5..801a892d5 100644 --- a/crates/horizon-client/src/font.rs +++ b/crates/horizon-client/src/font.rs @@ -102,7 +102,8 @@ enum Provider { /// One font (`FontSet`): its providers and the glyphs resolved so far. struct FontSet { providers: Vec, - glyphs: HashMap, + /// Every char drawn looks up here, so the hasher is Fx, not SipHash. + glyphs: crate::fast_hash::FxHashMap, /// `glyphsByWidth` for obfuscated text (built on first use). by_width: Option>>, } @@ -647,7 +648,7 @@ impl Font { .collect(); FontSet { providers, - glyphs: HashMap::new(), + glyphs: Default::default(), by_width: None, } }