Table of Contents

Class CSSFontFeatureValuesRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSFontFeatureValuesRule interface represents an @font-feature-values at-rule. The values of its instance properties can be accessed with the CSSFontFeatureValuesMapinterface.

[Value("CSSFontFeatureValuesRule")]
public class CSSFontFeatureValuesRule : CSSRule
Inheritance
CSSFontFeatureValuesRule
Inherited Members

Remarks

_font-feature-values allows developers to associate, for a given font face, a human-readable name with a numeric index that controls a particular OpenType font feature.
For features that select alternative glyphs (stylistic, styleset, character-variant, swash, ornament or annotation), the font-variant-alternates property can then reference the human-readable name in order to apply the associated feature.
This is convenient, because it allows the same name to be used of represent a set of alternative glyphs across a number of fonts.

-@font-feature-values

See also on MDN

Constructors

CSSFontFeatureValuesRule()

public CSSFontFeatureValuesRule()

Properties

Annotation

The read-only annotation property of the CSSFontFeatureValuesRule interface contains a CSSFontFeatureValuesMap object representing the user-defined-ident and feature index for a variable font which supports font-variant-alternates.

[Value("annotation")]
public CSSFontFeatureValuesMap Annotation { get; }

Property Value

CSSFontFeatureValuesMap

A CSSFontFeatureValuesMap object.Although the annotation property itself is read-only in the sense that you can't replace the CSSFontFeatureValuesMap object, you can still assign to the annotation property directly. You can also modify the values of the annotation using the CSSFontFeatureValuesMap instance methods.

Remarks

CharacterVariant

The read-only characterVariant property of the CSSFontFeatureValuesRule interface contains a CSSFontFeatureValuesMap object representing the user-defined-ident and feature index for a variable font which supports font-variant-alternates.

[Value("characterVariant")]
public CSSFontFeatureValuesMap CharacterVariant { get; }

Property Value

CSSFontFeatureValuesMap

A CSSFontFeatureValuesMap object.Although the characterVariant property itself is read-only in the sense that you can't replace the CSSFontFeatureValuesMap object, you can still assign to the characterVariant property directly. You can also modify the values of the characterVariant using the CSSFontFeatureValuesMap instance methods.

Remarks

FontFamily

The fontFamily property of the CSSFontFeatureValuesRule interface represents the name of the font family it applies to.

[Value("fontFamily")]
public string FontFamily { get; set; }

Property Value

string

A string.

Remarks

HistoricalForms

[Value("historicalForms")]
public CSSFontFeatureValuesMap HistoricalForms { get; }

Property Value

CSSFontFeatureValuesMap

Ornaments

The read-only ornaments property of the CSSFontFeatureValuesRule interface contains a CSSFontFeatureValuesMap object representing the user-defined-ident and feature index for a variable font which supports font-variant-alternates.

[Value("ornaments")]
public CSSFontFeatureValuesMap Ornaments { get; }

Property Value

CSSFontFeatureValuesMap

A CSSFontFeatureValuesMap object.Although the ornaments property itself is read-only in the sense that you can't replace the CSSFontFeatureValuesMap object, you can still assign to the ornaments property directly. You can also modify the values of the ornaments using the CSSFontFeatureValuesMap instance methods.

Remarks

Styleset

The read-only styleset property of the CSSFontFeatureValuesRule interface contains a CSSFontFeatureValuesMap object representing the user-defined-ident and feature index for a variable font which supports font-variant-alternates.

[Value("styleset")]
public CSSFontFeatureValuesMap Styleset { get; }

Property Value

CSSFontFeatureValuesMap

A CSSFontFeatureValuesMap object.Although the styleset property itself is read-only in the sense that you can't replace the CSSFontFeatureValuesMap object, you can still assign to the styleset property directly. You can also modify the values of the styleset using the CSSFontFeatureValuesMap instance methods.

Remarks

Stylistic

The read-only stylistic property of the CSSFontFeatureValuesRule interface contains a CSSFontFeatureValuesMap object representing the user-defined-ident and feature index for a variable font which supports font-variant-alternates.

[Value("stylistic")]
public CSSFontFeatureValuesMap Stylistic { get; }

Property Value

CSSFontFeatureValuesMap

A CSSFontFeatureValuesMap object.Although the stylistic property itself is read-only in the sense that you can't replace the CSSFontFeatureValuesMap object, you can still assign to the stylistic property directly. You can also modify the values of the stylistic using the CSSFontFeatureValuesMap instance methods.

Remarks

Swash

The read-only swash property of the CSSFontFeatureValuesRule interface contains a CSSFontFeatureValuesMap object representing the developer-provided name and feature index for a variable font which supports font-variant-alternates.

[Value("swash")]
public CSSFontFeatureValuesMap Swash { get; }

Property Value

CSSFontFeatureValuesMap

A CSSFontFeatureValuesMap object.Although the swash property itself is read-only in the sense that you can't replace the CSSFontFeatureValuesMap object, you can still assign to the swash property directly. You can also modify the values of the swash using the CSSFontFeatureValuesMap instance methods.

Remarks