Extract borrow of FontSystem from Buffer
This commit is contained in:
parent
bff5aaaea3
commit
057b5b6fa9
12 changed files with 381 additions and 216 deletions
|
|
@ -17,6 +17,8 @@ fn main() {
|
|||
// A Buffer provides shaping and layout for a UTF-8 string, create one per text widget
|
||||
let mut buffer = Buffer::new(&font_system, metrics);
|
||||
|
||||
let mut buffer = buffer.borrow_with(&font_system);
|
||||
|
||||
// Set a size for the text buffer, in pixels
|
||||
let width = 80u16;
|
||||
let height = 25u16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue