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

@ -3,7 +3,7 @@ use iced::font::{self, Font};
use iced::widget::{checkbox, column, container};
use iced::{Application, Command, Element, Length, Settings, Theme};
const ICON_FONT: Font = Font::Name("icons");
const ICON_FONT: Font = Font::with_name("icons");
pub fn main() -> iced::Result {
Example::run(Settings::default())