diff options
author | 2023-02-04 16:41:18 +0100 | |
---|---|---|
committer | 2023-02-17 15:47:51 +0100 | |
commit | 570600ce513e7e02b23c1da8322c68fbb876d1b0 (patch) | |
tree | cf0c03e34469ad9005288e627e37f69d75aad0e7 /wgpu/src/settings.rs | |
parent | 7b8b01f560569ae18d9337a31ba94f6c1c2ba0dd (diff) | |
download | iced-570600ce513e7e02b23c1da8322c68fbb876d1b0.tar.gz iced-570600ce513e7e02b23c1da8322c68fbb876d1b0.tar.bz2 iced-570600ce513e7e02b23c1da8322c68fbb876d1b0.zip |
Use `Pixels` for `Text::size`
Diffstat (limited to 'wgpu/src/settings.rs')
-rw-r--r-- | wgpu/src/settings.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wgpu/src/settings.rs b/wgpu/src/settings.rs index 21c2427d..fd3b990a 100644 --- a/wgpu/src/settings.rs +++ b/wgpu/src/settings.rs @@ -4,7 +4,7 @@ pub use crate::Antialiasing; /// The settings of a [`Backend`]. /// /// [`Backend`]: crate::Backend -#[derive(Debug, Clone, Copy, PartialEq, Eq)] +#[derive(Debug, Clone, Copy, PartialEq)] pub struct Settings { /// The present mode of the [`Backend`]. /// @@ -21,8 +21,8 @@ pub struct Settings { /// The default size of text. /// - /// By default, it will be set to 20. - pub default_text_size: u16, + /// By default, it will be set to `16.0`. + pub default_text_size: f32, /// If enabled, spread text workload in multiple threads when multiple cores /// are available. @@ -66,7 +66,7 @@ impl Default for Settings { present_mode: wgpu::PresentMode::AutoVsync, internal_backend: wgpu::Backends::all(), default_font: None, - default_text_size: 20, + default_text_size: 20.0, text_multithreading: false, antialiasing: None, } |