mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
Add benchmark for text layout and tesselation
This commit is contained in:
@@ -218,8 +218,8 @@ impl Font {
|
||||
/// `\n` will (intentionally) show up as the replacement character.
|
||||
fn glyph_info(&self, c: char) -> (FontIndex, GlyphInfo) {
|
||||
{
|
||||
if let Some(glyph_info) = self.glyph_info_cache.read().get(&c) {
|
||||
return *glyph_info;
|
||||
if let Some(font_index_glyph_info) = self.glyph_info_cache.read().get(&c) {
|
||||
return *font_index_glyph_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user