Have TextBuffer own FontMatches

This commit is contained in:
Jeremy Soller 2022-10-25 11:10:44 -06:00
parent 1c341f3126
commit 0f446368ca
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
5 changed files with 42 additions and 49 deletions

View file

@ -85,7 +85,7 @@ fn main() {
let line_x = 8 * display_scale;
let mut buffer = TextBuffer::new(
&font_matches,
font_matches,
font_sizes[font_size_i]
);
buffer.set_size(