diff options
author | 2020-05-19 20:30:46 +0200 | |
---|---|---|
committer | 2020-05-19 20:30:46 +0200 | |
commit | f0480854a9cd76f443848dbfa14256089b56abfe (patch) | |
tree | c19af18f58e3bdb1cc4bf53e9b207b253b3ab99e /graphics/src/font.rs | |
parent | e0c4f1a08e756f11c30a99cd739fe78267e5040b (diff) | |
download | iced-f0480854a9cd76f443848dbfa14256089b56abfe.tar.gz iced-f0480854a9cd76f443848dbfa14256089b56abfe.tar.bz2 iced-f0480854a9cd76f443848dbfa14256089b56abfe.zip |
Move built-in fonts to `iced_graphics`
Diffstat (limited to 'graphics/src/font.rs')
-rw-r--r-- | graphics/src/font.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/src/font.rs b/graphics/src/font.rs index 3890beba..a490e609 100644 --- a/graphics/src/font.rs +++ b/graphics/src/font.rs @@ -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}'; |