Package org.apache.fop.fonts
Class FontType
java.lang.Object
org.apache.fop.fonts.FontType
This class enumerates all supported font types.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FontType
static final FontType
Adobe Multiple Master Type 1 fontsstatic final FontType
Collective identifier for "other" font typesstatic final FontType
TrueType fontsstatic final FontType
Adobe Type 0 fonts (composite font)static final FontType
Adobe Type 1 fontsstatic final FontType
static final FontType
Adobe Type 3 fonts ("user-defined" fonts) -
Constructor Summary
-
Method Summary
-
Field Details
-
OTHER
Collective identifier for "other" font types -
TYPE0
Adobe Type 0 fonts (composite font) -
TYPE1
Adobe Type 1 fonts -
MMTYPE1
Adobe Multiple Master Type 1 fonts -
TYPE3
Adobe Type 3 fonts ("user-defined" fonts) -
TRUETYPE
TrueType fonts -
TYPE1C
-
CIDTYPE0
-
-
Constructor Details
-
FontType
Construct a font type.- Parameters:
name
- a font type namevalue
- a font type value
-
-
Method Details
-
byName
Returns the FontType by name.- Parameters:
name
- Name of the font type to look up- Returns:
- the font type
-
byValue
Returns the FontType by value.- Parameters:
value
- Value of the font type to look up- Returns:
- the font type
-
getName
Returns the name- Returns:
- the name
-
getValue
public int getValue()Returns the value- Returns:
- the value
-
toString
-