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.
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
annotationproperty itself is read-only in the sense that you can't replace theCSSFontFeatureValuesMapobject, you can still assign to theannotationproperty directly. You can also modify the values of theannotationusing theCSSFontFeatureValuesMapinstance methods.
Remarks
-@font-feature-values
-font-variant-alternates functional notation
-CSSFontFeatureValuesMap
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
characterVariantproperty itself is read-only in the sense that you can't replace theCSSFontFeatureValuesMapobject, you can still assign to thecharacterVariantproperty directly. You can also modify the values of thecharacterVariantusing theCSSFontFeatureValuesMapinstance methods.
Remarks
-@font-feature-values
-font-variant-alternates functional notation
-CSSFontFeatureValuesMap
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
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
ornamentsproperty itself is read-only in the sense that you can't replace theCSSFontFeatureValuesMapobject, you can still assign to theornamentsproperty directly. You can also modify the values of theornamentsusing theCSSFontFeatureValuesMapinstance methods.
Remarks
-@font-feature-values
-font-variant-alternates functional notation
-CSSFontFeatureValuesMap
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
stylesetproperty itself is read-only in the sense that you can't replace theCSSFontFeatureValuesMapobject, you can still assign to thestylesetproperty directly. You can also modify the values of thestylesetusing theCSSFontFeatureValuesMapinstance methods.
Remarks
-@font-feature-values
-font-variant-alternates functional notation
-CSSFontFeatureValuesMap
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
stylisticproperty itself is read-only in the sense that you can't replace theCSSFontFeatureValuesMapobject, you can still assign to thestylisticproperty directly. You can also modify the values of thestylisticusing theCSSFontFeatureValuesMapinstance methods.
Remarks
-@font-feature-values
-font-variant-alternates functional notation
-CSSFontFeatureValuesMap
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
swashproperty itself is read-only in the sense that you can't replace theCSSFontFeatureValuesMapobject, you can still assign to theswashproperty directly. You can also modify the values of theswashusing theCSSFontFeatureValuesMapinstance methods.
Remarks
-@font-feature-values
-font-variant-alternates functional notation
-CSSFontFeatureValuesMap