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 de7fc637cf
commit a2ab9e9395
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 19 additions and 25 deletions

View file

@ -288,7 +288,6 @@ where
{
let label_layout = children.next().unwrap();
let font = self.font.unwrap_or_else(|| renderer.default_font());
widget::text::draw(
renderer,
@ -296,7 +295,7 @@ where
label_layout,
&self.label,
self.text_size,
font,
self.font,
widget::text::Appearance {
color: custom_style.text_color,
},