Struct css::domain::atRules::fontFace::FontFaceAtRule
[−]
[src]
pub struct FontFaceAtRule { pub family: Option<FamilyName>, pub sources: Option<Vec<Source>>, pub style: Option<FontStyle>, pub weight: Option<FontWeight>, pub stretch: Option<FontStretch>, pub display: Option<FontDisplay>, pub unicode_range: Option<Vec<UnicodeRange>>, pub feature_settings: Option<FontFeatureSettings>, pub language_override: Option<FontLanguageOverride>, }
A @font-face
rule.
Fields
family: Option<FamilyName>
The name of this font face
sources: Option<Vec<Source>>
The alternative sources for this font face.
style: Option<FontStyle>
The style of this font face
weight: Option<FontWeight>
The weight of this font face
stretch: Option<FontStretch>
The stretch of this font face
display: Option<FontDisplay>
The display of this font face
unicode_range: Option<Vec<UnicodeRange>>
The ranges of code points outside of which this font face should not be used.
feature_settings: Option<FontFeatureSettings>
The feature settings of this font face.
language_override: Option<FontLanguageOverride>
The language override of this font face.
Methods
impl FontFaceAtRule
[src]
fn font_face(&self) -> Option<FontFace>
[src]
Per https://github.com/w3c/csswg-drafts/issues/1133 an @font-face rule is valid as far as the CSS parser is concerned even if it doesn't have a font-family or src declaration.
However both are required for the rule to represent an actual font face.
Trait Implementations
impl Debug for FontFaceAtRule
[src]
impl Clone for FontFaceAtRule
[src]
fn clone(&self) -> FontFaceAtRule
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more