public enum FontFormat extends Enum<FontFormat>
Enum Constant and Description |
---|
EmbeddedOpenType
The format: Embedded Open Type (EOT).
|
OpenType
The format: OpenType.
|
SVG
The format: SVG.
|
TrueType
The format: TrueType.
|
UNDEFINED
Undefined format.
|
WOFF
The format: WOFF.
|
WOFF2
The format: WOFF2.
|
Modifier and Type | Field and Description |
---|---|
String |
ext
File extension, null for undefined.
|
static String[] |
FORMATS
The format type names in an array.
|
String |
type
The type name of the format in CSS, e.g.
|
Modifier and Type | Method and Description |
---|---|
static FontFormat |
fromFileExtension(String fileName)
Returns the format for the file extension.
|
static FontFormat |
fromTypeName(String typeName)
Returns the format for the format type name-
|
static FontFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontFormat UNDEFINED
public static final FontFormat WOFF2
public static final FontFormat WOFF
public static final FontFormat TrueType
public static final FontFormat OpenType
public static final FontFormat EmbeddedOpenType
public static final FontFormat SVG
public final String ext
public final String type
public static final String[] FORMATS
public static FontFormat[] values()
for (FontFormat c : FontFormat.values()) System.out.println(c);
public static FontFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final FontFormat fromFileExtension(String fileName)
fileName
- The file name.public static final FontFormat fromTypeName(String typeName)
typeName
- The type name.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.