diff options
Diffstat (limited to 'native/src/font.rs')
-rw-r--r-- | native/src/font.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/native/src/font.rs b/native/src/font.rs deleted file mode 100644 index 15359694..00000000 --- a/native/src/font.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! Load and use fonts. -pub use iced_core::font::*; - -use crate::command::{self, Command}; -use std::borrow::Cow; - -/// An error while loading a font. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum Error {} - -/// Load a font from its bytes. -pub fn load( - bytes: impl Into<Cow<'static, [u8]>>, -) -> Command<Result<(), Error>> { - Command::single(command::Action::LoadFont { - bytes: bytes.into(), - tagger: Box::new(std::convert::identity), - }) -} |