Remove lifetime from SwashCache
This commit is contained in:
parent
2b991129e3
commit
4e93853765
10 changed files with 53 additions and 32 deletions
|
|
@ -18,7 +18,7 @@
|
|||
//! 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