Move built-in fonts to iced_graphics

This commit is contained in:
Héctor Ramón Jiménez 2020-05-19 20:30:46 +02:00
parent e0c4f1a08e
commit f0480854a9
12 changed files with 26 additions and 29 deletions

View file

@ -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}';