Implement font::load command in iced_native
This commit is contained in:
parent
b29de28d1f
commit
238154af4a
14 changed files with 384 additions and 241 deletions
|
|
@ -851,6 +851,16 @@ pub fn run_command<A, E>(
|
|||
current_cache = user_interface.into_cache();
|
||||
*cache = current_cache;
|
||||
}
|
||||
command::Action::LoadFont { bytes, tagger } => {
|
||||
use crate::text::Renderer;
|
||||
|
||||
// TODO: Error handling (?)
|
||||
renderer.load_font(bytes);
|
||||
|
||||
proxy
|
||||
.send_event(tagger(Ok(())))
|
||||
.expect("Send message to event loop");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue