summaryrefslogtreecommitdiffstats
path: root/native/src/font.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-05 06:35:20 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-05 06:35:20 +0100
commit99e0a71504456976ba88040f5d1d3bbc347694ea (patch)
treea228c064fd3847831ff8072aa9375dc59db47f47 /native/src/font.rs
parent8af69be47e88896b3c5f70174db609eee0c67971 (diff)
downloadiced-99e0a71504456976ba88040f5d1d3bbc347694ea.tar.gz
iced-99e0a71504456976ba88040f5d1d3bbc347694ea.tar.bz2
iced-99e0a71504456976ba88040f5d1d3bbc347694ea.zip
Rename `iced_native` to `iced_runtime`
Diffstat (limited to 'native/src/font.rs')
-rw-r--r--native/src/font.rs19
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),
- })
-}