Package com.iizix.prop.font
Enum Class FontFormat
- All Implemented Interfaces:
- Serializable,- Comparable<FontFormat>,- Constable
Available font formats.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum Constants
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescription- static final FontFormat- fromFileExtension- (String fileName) Returns the format for the file extension.- static final FontFormat- fromTypeName- (String typeName) Returns the format for the format type name-- static FontFormatReturns the enum constant of this class with the specified name.- static FontFormat[]- values()Returns an array containing the constants of this enum class, in the order they are declared.
- Enum Constant Details- UNDEFINEDUndefined format.
- WOFF2The format: WOFF2.
- WOFFThe format: WOFF.
- TrueTypeThe format: TrueType.
- OpenTypeThe format: OpenType.
- EmbeddedOpenTypeThe format: Embedded Open Type (EOT).
- SVGThe format: SVG.
 
- Field Details- extFile extension, null for undefined.
- typeThe type name of the format in CSS, e.g. "truetype" or "embedded-opentype".
- FORMATSThe format type names in an array.
 
- Method Details- valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- fromFileExtensionReturns the format for the file extension.- Parameters:
- fileName- The file name.
- Returns:
- A font format, perhaps UNDEFINED.
 
- fromTypeNameReturns the format for the format type name-- Parameters:
- typeName- The type name.
- Returns:
- A font format, perhaps UNDEFINED.