Use Pixels for Text::size

This commit is contained in:
Héctor Ramón Jiménez 2023-02-04 16:41:18 +01:00
parent 7b8b01f560
commit 570600ce51
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
16 changed files with 79 additions and 78 deletions

View file

@ -28,8 +28,8 @@ pub struct Settings<Flags> {
/// The text size that will be used by default.
///
/// The default value is 20.
pub default_text_size: u16,
/// The default value is `20.0`.
pub default_text_size: f32,
/// If enabled, spread text workload in multiple threads when multiple cores
/// are available.
@ -97,7 +97,7 @@ where
window: Default::default(),
flags: Default::default(),
default_font: Default::default(),
default_text_size: 20,
default_text_size: 20.0,
text_multithreading: false,
antialiasing: false,
exit_on_close_request: true,