pub struct FontFace<'a>(pub &'a FontFaceAtRule);Expand description
A @font-face rule that is known to have font-family and src declarations.
Tuple Fields§
§0: &'a FontFaceAtRuleImplementations§
Source§impl<'a> FontFace<'a>
impl<'a> FontFace<'a>
Sourcepub fn family(&self) -> &FamilyName
pub fn family(&self) -> &FamilyName
The name of this font face
Sourcepub fn weight(&self) -> FontWeight
pub fn weight(&self) -> FontWeight
The style of this font face
Sourcepub fn stretch(&self) -> FontStretch
pub fn stretch(&self) -> FontStretch
The stretch of this font face
Sourcepub fn display(&self) -> FontDisplay
pub fn display(&self) -> FontDisplay
The display of this font face
Sourcepub fn unicode_range(&self) -> Vec<UnicodeRange>
pub fn unicode_range(&self) -> Vec<UnicodeRange>
The ranges of code points outside of which this font face should not be used.
Sourcepub fn feature_settings(&self) -> FontFeatureSettings
pub fn feature_settings(&self) -> FontFeatureSettings
The feature settings of this font face.
Sourcepub fn language_override(&self) -> FontLanguageOverride
pub fn language_override(&self) -> FontLanguageOverride
The language override of this font face.
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> 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