Use arabic.txt example and get_image_uncached
This commit is contained in:
parent
7fe35bdce3
commit
dcdb250e19
4 changed files with 11 additions and 3 deletions
|
@ -108,8 +108,7 @@ impl TextRenderer {
|
|||
|
||||
let image = self
|
||||
.swash_cache
|
||||
.get_image(&buffer.font_matches, glyph.cache_key)
|
||||
.as_ref()
|
||||
.get_image_uncached(&buffer.font_matches, glyph.cache_key)
|
||||
.unwrap();
|
||||
let bitmap = image.data.as_slice();
|
||||
let width = image.placement.width as usize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue