Package org.docx4j.fonts.fop.fonts
Class FontType
java.lang.Object
org.docx4j.fonts.fop.fonts.FontType
public class FontType
extends java.lang.Object
This class enumerates all supported font types.
-
Field Summary
Fields Modifier and Type Field Description static FontTypeMMTYPE1Adobe Multiple Master Type 1 fontsstatic FontTypeOTHERCollective identifier for "other" font typesstatic FontTypeTRUETYPETrueType fontsstatic FontTypeTYPE0Adobe Type 0 fonts (composite font)static FontTypeTYPE1Adobe Type 1 fontsstatic FontTypeTYPE3Adobe Type 3 fonts ("user-defined" fonts) -
Constructor Summary
Constructors Modifier Constructor Description protectedFontType(java.lang.String name, int value) -
Method Summary
-
Field Details
-
Constructor Details
-
FontType
protected FontType(java.lang.String name, int value)- See Also:
org.apache.avalon.framework.Enum#Enum(String)
-
-
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
public java.lang.String getName()Returns the name- Returns:
- the name
-
getValue
public int getValue()Returns the value- Returns:
- the value
-