Do not require lifetime for swash fontref

This commit is contained in:
Jeremy Soller 2022-10-25 18:16:14 -06:00
parent 525c4efaa5
commit 3e8e28f0b3
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
2 changed files with 15 additions and 3 deletions

View file

@ -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();