diff options
author | 2020-01-01 17:49:48 +0100 | |
---|---|---|
committer | 2020-01-01 17:49:48 +0100 | |
commit | d96ced8e2da703117a43399110ef2b8fa21a7546 (patch) | |
tree | 2398eab8edb23b6cfa8145d84ab788cb44cddeb4 /src/application.rs | |
parent | e1062a02d17f5748e4809b76ddcc132f1c912886 (diff) | |
download | iced-d96ced8e2da703117a43399110ef2b8fa21a7546.tar.gz iced-d96ced8e2da703117a43399110ef2b8fa21a7546.tar.bz2 iced-d96ced8e2da703117a43399110ef2b8fa21a7546.zip |
Allow configuration of default font
Diffstat (limited to 'src/application.rs')
-rw-r--r-- | src/application.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/application.rs b/src/application.rs index a7e826fb..7dd76774 100644 --- a/src/application.rs +++ b/src/application.rs @@ -151,7 +151,12 @@ pub trait Application: Sized { Self: 'static, { #[cfg(not(target_arch = "wasm32"))] - <Instance<Self> as iced_winit::Application>::run(_settings.into()); + <Instance<Self> as iced_winit::Application>::run( + _settings.into(), + iced_wgpu::Settings { + default_font: _settings.default_font, + }, + ); #[cfg(target_arch = "wasm32")] <Instance<Self> as iced_web::Application>::run(); |