pub struct Font { /* private fields */ }
Expand description
Represents a font family name along with the font glyph source.
Implementations§
Source§impl Font
impl Font
Sourcepub const NOTO: Self
pub const NOTO: Self
Noto Sans Regular - an open-source used by Linux and Google.
Sourcepub const INCONSOLATA: Self
pub const INCONSOLATA: Self
Inconsolata - an open-source monospace font designed for source code and terminals.
Sourcepub const fn named(name: &'static str) -> Self
pub const fn named(name: &'static str) -> Self
Constructs a new Font
instance with a given name.
Sourcepub const fn from_bytes(name: &'static str, bytes: &'static [u8]) -> Self
pub const fn from_bytes(name: &'static str, bytes: &'static [u8]) -> Self
Constructs a new Font
instance from a static byte array.
Trait Implementations§
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.