Port iced_tiny_skia to new layering architecture
This commit is contained in:
parent
2c6fd9ac14
commit
6ad5bb3597
28 changed files with 1948 additions and 1935 deletions
|
|
@ -1194,13 +1194,8 @@ fn run_command<A, C, E>(
|
|||
uis.drain().map(|(id, ui)| (id, ui.into_cache())).collect();
|
||||
}
|
||||
command::Action::LoadFont { bytes, tagger } => {
|
||||
use crate::core::text::Renderer;
|
||||
|
||||
// TODO change this once we change each renderer to having a single backend reference.. :pain:
|
||||
// TODO: Error handling (?)
|
||||
for (_, window) in window_manager.iter_mut() {
|
||||
window.renderer.load_font(bytes.clone());
|
||||
}
|
||||
compositor.load_font(bytes.clone());
|
||||
|
||||
proxy
|
||||
.send_event(tagger(Ok(())))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue