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>,
}

Fields

The name of this font face

The alternative sources for this font face.

The style of this font face

The weight of this font face

The stretch of this font face

The display of this font face

The ranges of code points outside of which this font face should not be used.

The feature settings of this font face.

The language override of this font face.

Methods

impl FontFaceAtRule
[src]

[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]

[src]

Formats the value using the given formatter.

impl Clone for FontFaceAtRule
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ToCss for FontFaceAtRule
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more