Do not require lifetime for swash fontref
This commit is contained in:
parent
525c4efaa5
commit
3e8e28f0b3
2 changed files with 15 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ impl SwashCache {
|
|||
|
||||
// Build the scaler
|
||||
let mut scaler = self.context
|
||||
.builder(font.swash)
|
||||
.builder(font.as_swash())
|
||||
.size(cache_key.font_size as f32)
|
||||
.hint(true)
|
||||
.build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue