mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Rename font_impls field to fonts_by_name
This commit is contained in:
@@ -754,7 +754,7 @@ pub struct FontsImpl {
|
|||||||
definitions: FontDefinitions,
|
definitions: FontDefinitions,
|
||||||
atlas: TextureAtlas,
|
atlas: TextureAtlas,
|
||||||
fonts_by_id: nohash_hasher::IntMap<FontFaceKey, FontImpl>,
|
fonts_by_id: nohash_hasher::IntMap<FontFaceKey, FontImpl>,
|
||||||
font_impls: ahash::HashMap<String, FontFaceKey>,
|
fonts_by_name: ahash::HashMap<String, FontFaceKey>,
|
||||||
family_cache: ahash::HashMap<FontFamily, CachedFamily>,
|
family_cache: ahash::HashMap<FontFamily, CachedFamily>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -786,7 +786,7 @@ impl FontsImpl {
|
|||||||
definitions,
|
definitions,
|
||||||
atlas,
|
atlas,
|
||||||
fonts_by_id,
|
fonts_by_id,
|
||||||
font_impls,
|
fonts_by_name: font_impls,
|
||||||
family_cache: Default::default(),
|
family_cache: Default::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -802,7 +802,7 @@ impl FontsImpl {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|font_name| {
|
.map(|font_name| {
|
||||||
*self
|
*self
|
||||||
.font_impls
|
.fonts_by_name
|
||||||
.get(font_name)
|
.get(font_name)
|
||||||
.unwrap_or_else(|| panic!("No font data found for {font_name:?}"))
|
.unwrap_or_else(|| panic!("No font data found for {font_name:?}"))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user