pub struct FontFace<'a> { /* private fields */ }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<'a> FontFace<'a>
impl<'a> FontFace<'a>
pub fn builder( fontFamily: impl Into<Cow<'a, str>>, fontStyle: impl Into<Cow<'a, str>>, fontVariant: impl Into<Cow<'a, str>>, fontWeight: impl Into<Cow<'a, str>>, fontStretch: impl Into<Cow<'a, str>>, fontDisplay: impl Into<Cow<'a, str>>, unicodeRange: impl Into<Cow<'a, str>>, src: impl Into<Cow<'a, str>>, platformFontFamily: impl Into<Cow<'a, str>>, ) -> FontFaceBuilder<'a>
pub fn fontFamily(&self) -> &str
pub fn fontStyle(&self) -> &str
pub fn fontVariant(&self) -> &str
pub fn fontWeight(&self) -> &str
pub fn fontStretch(&self) -> &str
pub fn fontDisplay(&self) -> &str
pub fn unicodeRange(&self) -> &str
pub fn src(&self) -> &str
pub fn platformFontFamily(&self) -> &str
pub fn fontVariationAxes(&self) -> Option<&[FontVariationAxis<'a>]>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for FontFace<'a>
impl<'de, 'a> Deserialize<'de> for FontFace<'a>
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<'a> Freeze for FontFace<'a>
impl<'a> RefUnwindSafe for FontFace<'a>
impl<'a> Send for FontFace<'a>
impl<'a> Sync for FontFace<'a>
impl<'a> Unpin for FontFace<'a>
impl<'a> UnsafeUnpin for FontFace<'a>
impl<'a> UnwindSafe for FontFace<'a>
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