Struct pix_engine::gui::theme::Font
source · 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§
source§impl PartialEq for Font
impl PartialEq for Font
impl Eq for Font
impl StructuralEq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more