pub struct NamedFont {
pub name: String,
pub data: FontHandle,
}Expand description
A named font face inside a pack. The name is used by the backend to register the font in its registry and (where applicable) to make it addressable by user code.
Fields§
§name: StringStable identifier (e.g. "geist-regular", "geist-mono").
data: FontHandleThe raw font bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NamedFont
impl RefUnwindSafe for NamedFont
impl Send for NamedFont
impl Sync for NamedFont
impl Unpin for NamedFont
impl UnsafeUnpin for NamedFont
impl UnwindSafe for NamedFont
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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