1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Add benchmark for text layout and tesselation

This commit is contained in:
Emil Ernerfeldt
2021-02-08 22:53:31 +01:00
parent f5431f308a
commit 1c415bd8fe
4 changed files with 46 additions and 4 deletions

View File

@@ -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;
}
}