pub struct LoadedFont {
pub family: String,
pub weight: u16,
pub italic: bool,
pub data: FontData,
}Expand description
A @font-face the host should register.
Fields§
§family: StringThe declared font-family.
weight: u16The declared font-weight (a range registers at its first value).
italic: boolWhether the face is italic or oblique.
data: FontDataThe font.
Trait Implementations§
Source§impl Clone for LoadedFont
impl Clone for LoadedFont
Source§impl Debug for LoadedFont
impl Debug for LoadedFont
impl Eq for LoadedFont
Source§impl PartialEq for LoadedFont
impl PartialEq for LoadedFont
impl StructuralPartialEq for LoadedFont
Auto Trait Implementations§
impl Forget for LoadedFont
impl Freeze for LoadedFont
impl Move for LoadedFont
impl RefUnwindSafe for LoadedFont
impl Send for LoadedFont
impl Sync for LoadedFont
impl Unpin for LoadedFont
impl UnsafeUnpin for LoadedFontwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
impl UnwindSafe for LoadedFont
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