Clear text caches after a font is loaded
This commit is contained in:
parent
5bc7cbf5bc
commit
ef87ff1e8a
2 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue