Class CSS20GenericFontFamily
java.lang.Object
com.adobe.fontengine.inlineformatting.css20.CSS20GenericFontFamily
This class provides an enumeration of the possible values for CSS generic font families.
Concurrency
Instances of this class are immutable after construction and contain no mutable static data. Therefore, they are threadsafe.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CSS20GenericFontFamily
The "cursive" CSS generic font family.static final CSS20GenericFontFamily
The "fantasy" CSS generic font family.static final CSS20GenericFontFamily
The "monospace" CSS generic font family.static final CSS20GenericFontFamily
The "sans-serif" CSS generic font family.static final CSS20GenericFontFamily
The "serif" CSS generic font family. -
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name of the generic family.static CSS20GenericFontFamily
Parse the text and return the CSS20GenericFontFamily object which is represented if any.
-
Field Details
-
SERIF
The "serif" CSS generic font family. -
SANS_SERIF
The "sans-serif" CSS generic font family. -
CURSIVE
The "cursive" CSS generic font family. -
FANTASY
The "fantasy" CSS generic font family. -
MONOSPACE
The "monospace" CSS generic font family.
-
-
Method Details
-
name
Get the name of the generic family.- Returns:
- the name of the generic family
-
parse
Parse the text and return the CSS20GenericFontFamily object which is represented if any.- Parameters:
text
- textual representation of the generic font family- Returns:
- CSS20GenericFontFamily represented by the text value
-