Move built-in fonts to iced_graphics
This commit is contained in:
parent
e0c4f1a08e
commit
f0480854a9
12 changed files with 26 additions and 29 deletions
|
|
@ -8,3 +8,15 @@ pub use source::Source;
|
|||
pub use font_kit::{
|
||||
error::SelectionError as LoadError, family_name::FamilyName as Family,
|
||||
};
|
||||
|
||||
#[cfg(feature = "font-fallback")]
|
||||
pub const FALLBACK: &[u8] = include_bytes!("../fonts/Lato-Regular.ttf");
|
||||
|
||||
#[cfg(feature = "font-icons")]
|
||||
pub const ICONS: iced_native::Font = iced_native::Font::External {
|
||||
name: "iced_wgpu icons",
|
||||
bytes: include_bytes!("../fonts/Icons.ttf"),
|
||||
};
|
||||
|
||||
#[cfg(feature = "font-icons")]
|
||||
pub const CHECKMARK_ICON: char = '\u{F00C}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue