Use get_image_uncached in iced_tiny_skia

... since we are not reusing the `SwashCache`
This commit is contained in:
Héctor Ramón Jiménez 2023-02-28 03:48:34 +01:00
parent 151daf95b7
commit fd06de5d9c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -257,7 +257,7 @@ impl GlyphCache {
if let hash_map::Entry::Vacant(entry) = self.entries.entry(key) {
// TODO: Outline support
let image = swash.get_image(cache_key).as_ref()?;
let image = swash.get_image_uncached(cache_key)?;
let glyph_size = image.placement.width as usize
* image.placement.height as usize;