Rename iced_native to iced_runtime
This commit is contained in:
parent
8af69be47e
commit
99e0a71504
39 changed files with 87 additions and 97 deletions
|
|
@ -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),
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue