Cache font matches, use usize for line index, use font system for swash
This commit is contained in:
parent
94576fb682
commit
119a570ee9
8 changed files with 105 additions and 120 deletions
|
|
@ -53,7 +53,7 @@ fn main() {
|
|||
default_text.to_string()
|
||||
};
|
||||
|
||||
let mut swash_cache = SwashCache::new();
|
||||
let mut swash_cache = SwashCache::new(&font_system);
|
||||
|
||||
let line_x = 8 * display_scale;
|
||||
let attrs = cosmic_text::Attrs::new().monospaced(cfg!(feature = "mono"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue