Replace Program::fonts with simpler font method
This commit is contained in:
parent
bad3b1ac47
commit
cfc0383bbf
2 changed files with 5 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ const ICON_FONT: Font = Font::with_name("icons");
|
|||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::sandbox("Checkbox - Iced", Example::update, Example::view)
|
||||
.fonts([include_bytes!("../fonts/icons.ttf").as_slice().into()])
|
||||
.font(include_bytes!("../fonts/icons.ttf").as_slice())
|
||||
.run()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue