pub struct FontFace {
pub fontFamily: String,
pub fontStyle: String,
pub fontVariant: String,
pub fontWeight: String,
pub fontStretch: String,
pub fontDisplay: String,
pub unicodeRange: String,
pub src: String,
pub platformFontFamily: String,
pub fontVariationAxes: Option<Vec<FontVariationAxis>>,
}Expand description
Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.
Fields§
§fontFamily: StringThe font-family.
fontStyle: StringThe font-style.
fontVariant: StringThe font-variant.
fontWeight: StringThe font-weight.
fontStretch: StringThe font-stretch.
fontDisplay: StringThe font-display.
unicodeRange: StringThe unicode-range.
src: StringThe src.
platformFontFamily: StringThe resolved platform font family
fontVariationAxes: Option<Vec<FontVariationAxis>>Available variation settings (a.k.a. “axes”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FontFace
impl<'de> Deserialize<'de> for FontFace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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