pub struct FontFace {
pub family: String,
pub style: Option<FontStyle>,
pub weight: Option<u16>,
pub src: Vec<Src>,
}Expand description
One @font-face: an identity, and the sources to try for it.
Slope and weight are what the sheet declared, not what the file says about itself; a sheet that declares neither leaves the file to describe its own cuts.
Fields§
§family: StringThe family a selector names the face by.
style: Option<FontStyle>The declared slope, if the sheet declared one.
weight: Option<u16>The declared weight, if the sheet declared one.
src: Vec<Src>The sources, in the order to try them.
Trait Implementations§
impl StructuralPartialEq for FontFace
Auto Trait Implementations§
impl Freeze for FontFace
impl RefUnwindSafe for FontFace
impl Send for FontFace
impl Sync for FontFace
impl Unpin for FontFace
impl UnsafeUnpin for FontFace
impl UnwindSafe for FontFace
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.