pub struct FontFace { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.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.
Implementations§
Source§impl FontFace
impl FontFace
pub fn builder() -> FontFaceBuilder
Sourcepub fn font_family(&self) -> &str
pub fn font_family(&self) -> &str
The font-family.
Sourcepub fn font_style(&self) -> &str
pub fn font_style(&self) -> &str
The font-style.
Sourcepub fn font_variant(&self) -> &str
pub fn font_variant(&self) -> &str
The font-variant.
Sourcepub fn font_weight(&self) -> &str
pub fn font_weight(&self) -> &str
The font-weight.
Sourcepub fn font_stretch(&self) -> &str
pub fn font_stretch(&self) -> &str
The font-stretch.
Sourcepub fn unicode_range(&self) -> &str
pub fn unicode_range(&self) -> &str
The unicode-range.
Sourcepub fn platform_font_family(&self) -> &str
pub fn platform_font_family(&self) -> &str
The resolved platform font family
Sourcepub fn font_variation_axes(&self) -> Option<&Vec<FontVariationAxis>>
pub fn font_variation_axes(&self) -> 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 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