This commit is contained in:
griffi-gh 2023-12-02 19:11:41 +01:00
parent 491bb435cc
commit f19031662f
2 changed files with 3 additions and 6 deletions

View file

@ -26,12 +26,10 @@ fn main() {
let (window, display) = SimpleWindowBuilder::new().build(&event_loop);
let mut kui = KubiUi::new();
let handle = kui.add_font_from_bytes(include_bytes!("../../assets/fonts/roboto/Roboto-Regular.ttf"));
let mut backend = GliumUiRenderer::new(&display);
let instant = Instant::now();
let font_handle = kui.add_font_from_bytes(include_bytes!("../../assets/fonts/roboto/Roboto-Regular.ttf"));
event_loop.run(|event, window_target| {
window_target.set_control_flow(ControlFlow::Poll);
match event {
@ -54,7 +52,7 @@ fn main() {
elements: vec![
Box::new(Text {
text: "Hello_world".into(),
font: handle,
font: font_handle,
..Default::default()
}),
],

View file

@ -188,7 +188,6 @@ impl UiDrawPlan {
},
]);
}
}
}
prev_command = Some(command);