Class CSS20GenericFontFamily
- java.lang.Object
-
- com.adobe.fontengine.inlineformatting.css20.CSS20GenericFontFamily
-
public final class CSS20GenericFontFamily extends java.lang.Object
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
Fields Modifier and Type Field Description static CSS20GenericFontFamily
CURSIVE
The "cursive" CSS generic font family.static CSS20GenericFontFamily
FANTASY
The "fantasy" CSS generic font family.static CSS20GenericFontFamily
MONOSPACE
The "monospace" CSS generic font family.static CSS20GenericFontFamily
SANS_SERIF
The "sans-serif" CSS generic font family.static CSS20GenericFontFamily
SERIF
The "serif" CSS generic font family.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
name()
Get the name of the generic family.static CSS20GenericFontFamily
parse(java.lang.String text)
Parse the text and return the CSS20GenericFontFamily object which is represented if any.
-
-
-
Field Detail
-
SERIF
public static final CSS20GenericFontFamily SERIF
The "serif" CSS generic font family.
-
SANS_SERIF
public static final CSS20GenericFontFamily SANS_SERIF
The "sans-serif" CSS generic font family.
-
CURSIVE
public static final CSS20GenericFontFamily CURSIVE
The "cursive" CSS generic font family.
-
FANTASY
public static final CSS20GenericFontFamily FANTASY
The "fantasy" CSS generic font family.
-
MONOSPACE
public static final CSS20GenericFontFamily MONOSPACE
The "monospace" CSS generic font family.
-
-
Method Detail
-
name
public java.lang.String name()
Get the name of the generic family.- Returns:
- the name of the generic family
-
parse
public static CSS20GenericFontFamily parse(java.lang.String text)
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
-
-