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
|
|
@ -71,7 +71,7 @@ fn main() {
|
|||
window.height() as i32
|
||||
);
|
||||
|
||||
let mut swash_cache = SwashCache::new();
|
||||
let mut swash_cache = SwashCache::new(&font_system);
|
||||
|
||||
let text = if let Some(arg) = env::args().nth(1) {
|
||||
fs::read_to_string(&arg).expect("failed to open file")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue