diff options
author | 2023-06-21 21:47:29 +0200 | |
---|---|---|
committer | 2023-06-21 21:47:29 +0200 | |
commit | ef87ff1e8ab24279a551b3eef6bacd8813712530 (patch) | |
tree | dd81a0dbbbecd72fcf53b402d1909bc09e8610f5 /tiny_skia | |
parent | 5bc7cbf5bca039ec3a4cbe82b161c087a4b39680 (diff) | |
download | iced-ef87ff1e8ab24279a551b3eef6bacd8813712530.tar.gz iced-ef87ff1e8ab24279a551b3eef6bacd8813712530.tar.bz2 iced-ef87ff1e8ab24279a551b3eef6bacd8813712530.zip |
Clear text caches after a font is loaded
Diffstat (limited to 'tiny_skia')
-rw-r--r-- | tiny_skia/src/text.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tiny_skia/src/text.rs b/tiny_skia/src/text.rs index be5fc4e1..6ff797db 100644 --- a/tiny_skia/src/text.rs +++ b/tiny_skia/src/text.rs @@ -36,6 +36,8 @@ impl Pipeline { self.font_system.get_mut().db_mut().load_font_source( cosmic_text::fontdb::Source::Binary(Arc::new(bytes.into_owned())), ); + + self.cache = RefCell::new(Cache::new()); } pub fn draw( |