Clear text caches after a font is loaded

This commit is contained in:
Héctor Ramón Jiménez 2023-06-21 21:47:29 +02:00
parent 5bc7cbf5bc
commit ef87ff1e8a
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 4 additions and 0 deletions

View file

@ -54,6 +54,8 @@ impl Pipeline {
let _ = self.font_system.get_mut().db_mut().load_font_source(
glyphon::fontdb::Source::Binary(Arc::new(bytes.into_owned())),
);
self.cache = RefCell::new(Cache::new());
}
pub fn prepare(