Extract borrow of FontSystem from Buffer
This commit is contained in:
parent
bff5aaaea3
commit
057b5b6fa9
12 changed files with 381 additions and 216 deletions
|
|
@ -41,6 +41,8 @@ fn main() {
|
|||
Metrics::new(32.0, 44.0).scale(display_scale),
|
||||
));
|
||||
|
||||
let mut editor = editor.borrow_with(&font_system);
|
||||
|
||||
editor
|
||||
.buffer_mut()
|
||||
.set_size(window.width() as f32, window.height() as f32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue