org.apache.fop.fonts
Class FontType
java.lang.Object
|
+--org.apache.avalon.framework.Enum
|
+--org.apache.avalon.framework.ValuedEnum
|
+--org.apache.fop.fonts.FontType
- public class FontType
- extends org.apache.avalon.framework.ValuedEnum
This class enumerates all supported font types.
Constructor Summary |
protected |
FontType(java.lang.String name,
int value)
|
Method Summary |
static FontType |
byName(java.lang.String name)
Returns the FontType by name. |
static FontType |
byValue(int value)
Returns the FontType by value. |
Methods inherited from class org.apache.avalon.framework.ValuedEnum |
getValue, isEqualTo, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThanOrEqual, toString |
Methods inherited from class org.apache.avalon.framework.Enum |
equals, getName, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
OTHER
public static final FontType OTHER
- Collective identifier for "other" font types
TYPE0
public static final FontType TYPE0
- Adobe Type 0 fonts
TYPE1
public static final FontType TYPE1
- Adobe Type 1 fonts
MMTYPE1
public static final FontType MMTYPE1
- Adobe Multiple Master Type 1 fonts
TYPE3
public static final FontType TYPE3
- Adobe Type 3 fonts ("user-defined" fonts)
TRUETYPE
public static final FontType TRUETYPE
- TrueType fonts
FontType
protected FontType(java.lang.String name,
int value)
- See Also:
Enum.Enum(String)
byName
public static FontType byName(java.lang.String name)
- Returns the FontType by name.
- Parameters:
name
- Name of the font type to look up- Returns:
- the font type
byValue
public static FontType byValue(int value)
- Returns the FontType by value.
- Parameters:
value
- Value of the font type to look up- Returns:
- the font type
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.