Remove lifetime from SwashCache
This commit is contained in:
parent
2b991129e3
commit
4e93853765
10 changed files with 53 additions and 32 deletions
|
|
@ -9,7 +9,7 @@ fn main() {
|
|||
let font_system = FontSystem::new();
|
||||
|
||||
// A SwashCache stores rasterized glyphs, create one per application
|
||||
let mut swash_cache = SwashCache::new(&font_system);
|
||||
let mut swash_cache = SwashCache::new();
|
||||
|
||||
// Text metrics indicate the font size and line height of a buffer
|
||||
let metrics = Metrics::new(14.0, 20.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue