- All Known Implementing Classes:
FontFeatureValuesRule
@font-feature-values rule. See
CSS Fonts Module Level
4: the @font-feature-values rule.
-
Field Summary
Fields inherited from interface io.sf.carte.doc.style.css.CSSRule
COUNTER_STYLE_RULE, CUSTOM_MEDIA_RULE, DOCUMENT_RULE, FONT_FACE_RULE, FONT_FEATURE_VALUES_RULE, IMPORT_RULE, KEYFRAME_RULE, KEYFRAMES_RULE, MARGIN_RULE, MEDIA_RULE, NAMESPACE_RULE, PAGE_RULE, PROPERTY_RULE, REGION_STYLE_RULE, STYLE_RULE, SUPPORTS_RULE, UNKNOWN_RULE, VIEWPORT_RULE
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Enable a feature values map for the given feature value name.Get the annotation map.Get the characterVariant map.getFeatureValuesMap
(String featureValueName) Get a feature values map for the given name.String[]
Get the list of font families for which a given set of feature values is defined.Get the ornaments map.Get the styleset map.Get the stylistic map.getSwash()
Get the swash map.Methods inherited from interface io.sf.carte.doc.style.css.CSSRule
getMinifiedCssText, getParentRule, getParentStyleSheet, getPrecedingComments, getTrailingComments, writeCssText
Methods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getType, setCssText
-
Method Details
-
getFontFamily
String[] getFontFamily()Get the list of font families for which a given set of feature values is defined.- Returns:
- the list of font families.
-
getAnnotation
CSSFontFeatureValuesMap getAnnotation()Get the annotation map.- Returns:
- the annotation map.
-
getOrnaments
CSSFontFeatureValuesMap getOrnaments()Get the ornaments map.- Returns:
- the ornaments map.
-
getStylistic
CSSFontFeatureValuesMap getStylistic()Get the stylistic map.- Returns:
- the stylistic map.
-
getSwash
CSSFontFeatureValuesMap getSwash()Get the swash map.- Returns:
- the swash map.
-
getCharacterVariant
CSSFontFeatureValuesMap getCharacterVariant()Get the characterVariant map.- Returns:
- the characterVariant map.
-
getStyleset
CSSFontFeatureValuesMap getStyleset()Get the styleset map.- Returns:
- the styleset map.
-
enableMap
Enable a feature values map for the given feature value name. When enabled, a map forfeatureValueName
will be returned bygetFeatureValuesMap(String)
.If a standard feature values name (like 'annotation' or 'stylistic') is enabled, this method has no effect. The method can be used to enable, for example,
historical-forms
.- Parameters:
featureValueName
- the feature value name to be enabled.
-
getFeatureValuesMap
Get a feature values map for the given name.- Parameters:
featureValueName
- the feature value name.- Returns:
- the feature values map, or
null
if the feature value name is not standard and has not been enabled byenableMap(String)
.
-