1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Wrap Fonts in a Mutex

This commit is contained in:
Emil Ernerfeldt
2022-01-22 14:50:06 +01:00
parent d70c80569f
commit b0196527e5
7 changed files with 135 additions and 76 deletions

View File

@@ -72,6 +72,7 @@ impl super::View for FontBook {
let filter = &self.filter;
let named_chars = self.named_chars.entry(text_style).or_insert_with(|| {
ui.fonts()
.lock()
.font(text_style)
.characters()
.iter()