pub struct FontFace {
pub font_family: String,
pub font_style: String,
pub font_variant: String,
pub font_weight: String,
pub font_stretch: String,
pub font_display: String,
pub unicode_range: String,
pub src: String,
pub platform_font_family: String,
pub font_variation_axes: 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. FontFace
Fields§
§font_family: StringThe font-family.
font_style: StringThe font-style.
font_variant: StringThe font-variant.
font_weight: StringThe font-weight.
font_stretch: StringThe font-stretch.
font_display: StringThe font-display.
unicode_range: StringThe unicode-range.
src: StringThe src.
platform_font_family: StringThe resolved platform font family
font_variation_axes: Option<Vec<FontVariationAxis>>Available variation settings (a.k.a. “axes”).
Implementations§
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
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 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