Struct style::stylesheets::font_feature_values_rule::FontFeatureValuesRule [] [src]

pub struct FontFeatureValuesRule {
    pub family_names: Vec<FamilyName>,
    pub swash: Vec<FFVDeclaration<SingleValue>>,
    pub stylistic: Vec<FFVDeclaration<SingleValue>>,
    pub ornaments: Vec<FFVDeclaration<SingleValue>>,
    pub annotation: Vec<FFVDeclaration<SingleValue>>,
    pub character_variant: Vec<FFVDeclaration<PairValues>>,
    pub styleset: Vec<FFVDeclaration<VectorValues>>,
    pub source_location: SourceLocation,
}

The @font-feature-values at-rule.

Fields

Font family list for @font-feature-values rule. Family names cannot contain generic families. FamilyName also accepts only non-generic names.

A @swash blocksck. Specifies a feature name that will work with the swash() functional notation of font-variant-alternates.

A @stylistic block. Specifies a feature name that will work with the annotation() functional notation of font-variant-alternates.

A @ornaments block. Specifies a feature name that will work with the ornaments() ] functional notation of font-variant-alternates.

A @annotation block. Specifies a feature name that will work with the stylistic() functional notation of font-variant-alternates.

A @character-variant block. Specifies a feature name that will work with the styleset() functional notation of font-variant-alternates. The value can be a pair.

A @styleset block. Specifies a feature name that will work with the character-variant() functional notation of font-variant-alternates. The value can be a list.

The line and column of the rule's source code.

Methods

impl FontFeatureValuesRule
[src]

[src]

Parses a FontFeatureValuesRule.

[src]

Prints font family names.

[src]

Prints inside of @font-feature-values block.

[src]

Returns length of all at-rules.

Trait Implementations

impl Clone for FontFeatureValuesRule
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FontFeatureValuesRule
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for FontFeatureValuesRule
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl ToCssWithGuard for FontFeatureValuesRule
[src]

[src]

Serialize self in CSS syntax, writing to dest, using the given lock guard.

[src]

Serialize self in CSS syntax using the given lock guard and return a string. Read more