Use get_image_uncached in iced_tiny_skia
... since we are not reusing the `SwashCache`
This commit is contained in:
parent
151daf95b7
commit
fd06de5d9c
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ impl GlyphCache {
|
||||||
|
|
||||||
if let hash_map::Entry::Vacant(entry) = self.entries.entry(key) {
|
if let hash_map::Entry::Vacant(entry) = self.entries.entry(key) {
|
||||||
// TODO: Outline support
|
// 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
|
let glyph_size = image.placement.width as usize
|
||||||
* image.placement.height as usize;
|
* image.placement.height as usize;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue