diff options
author | 2023-03-30 00:56:00 +0200 | |
---|---|---|
committer | 2023-03-30 00:56:00 +0200 | |
commit | 707de9d788dc3c49d4ac57a19afac1bb938b78d9 (patch) | |
tree | a1f38efa232742f375afae751d433276a83f7e49 /graphics/src/geometry | |
parent | 472fbdf1875e82bc89ac0bbd4b2ff09cae1d9620 (diff) | |
download | iced-707de9d788dc3c49d4ac57a19afac1bb938b78d9.tar.gz iced-707de9d788dc3c49d4ac57a19afac1bb938b78d9.tar.bz2 iced-707de9d788dc3c49d4ac57a19afac1bb938b78d9.zip |
Introduce support for `Font` attributes
Diffstat (limited to 'graphics/src/geometry')
-rw-r--r-- | graphics/src/geometry/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/geometry/text.rs b/graphics/src/geometry/text.rs index 06e0b4d0..0befd635 100644 --- a/graphics/src/geometry/text.rs +++ b/graphics/src/geometry/text.rs @@ -34,7 +34,7 @@ impl Default for Text { position: Point::ORIGIN, color: Color::BLACK, size: 16.0, - font: Font::SansSerif, + font: Font::default(), horizontal_alignment: alignment::Horizontal::Left, vertical_alignment: alignment::Vertical::Top, } |