summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-18 19:07:41 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-18 19:07:41 +0200
commite7326f0af6f16cf2ff04fbac93bf296a044923f4 (patch)
tree05a309b7faf7a8b6f8c609c128dffa996660f1e4 /winit/src/application.rs
parent8446fe6de52fa68077d23d39f728f79a29b52f00 (diff)
downloadiced-e7326f0af6f16cf2ff04fbac93bf296a044923f4.tar.gz
iced-e7326f0af6f16cf2ff04fbac93bf296a044923f4.tar.bz2
iced-e7326f0af6f16cf2ff04fbac93bf296a044923f4.zip
Flesh out the `editor` example a bit more
Diffstat (limited to '')
-rw-r--r--winit/src/application.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index d1689452..e80e9783 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -193,7 +193,14 @@ where
};
}
- let (compositor, renderer) = C::new(compositor_settings, Some(&window))?;
+ let (compositor, mut renderer) =
+ C::new(compositor_settings, Some(&window))?;
+
+ for font in settings.fonts {
+ use crate::core::text::Renderer;
+
+ renderer.load_font(font);
+ }
let (mut event_sender, event_receiver) = mpsc::unbounded();
let (control_sender, mut control_receiver) = mpsc::unbounded();