diff --git a/crates/epaint/src/text/fonts.rs b/crates/epaint/src/text/fonts.rs index 0f2fef216..710b9ca83 100644 --- a/crates/epaint/src/text/fonts.rs +++ b/crates/epaint/src/text/fonts.rs @@ -754,7 +754,7 @@ pub struct FontsImpl { definitions: FontDefinitions, atlas: TextureAtlas, fonts_by_id: nohash_hasher::IntMap, - font_impls: ahash::HashMap, + fonts_by_name: ahash::HashMap, family_cache: ahash::HashMap, } @@ -786,7 +786,7 @@ impl FontsImpl { definitions, atlas, fonts_by_id, - font_impls, + fonts_by_name: font_impls, family_cache: Default::default(), } } @@ -802,7 +802,7 @@ impl FontsImpl { .iter() .map(|font_name| { *self - .font_impls + .fonts_by_name .get(font_name) .unwrap_or_else(|| panic!("No font data found for {font_name:?}")) })