Introduce support for Font attributes

This commit is contained in:
Héctor Ramón Jiménez 2023-03-30 00:56:00 +02:00
parent 472fbdf187
commit 707de9d788
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
15 changed files with 129 additions and 44 deletions

View file

@ -42,12 +42,12 @@ impl Renderer for Null {
impl text::Renderer for Null {
type Font = Font;
const ICON_FONT: Font = Font::SansSerif;
const ICON_FONT: Font = Font::DEFAULT;
const CHECKMARK_ICON: char = '0';
const ARROW_DOWN_ICON: char = '0';
fn default_font(&self) -> Self::Font {
Font::SansSerif
Font::default()
}
fn default_size(&self) -> f32 {