Enum CssFontFace.FontFormat
- java.lang.Object
-
- java.lang.Enum<CssFontFace.FontFormat>
-
- com.itextpdf.styledxmlparser.css.font.CssFontFace.FontFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CssFontFace.FontFormat>
- Enclosing class:
- CssFontFace
public static enum CssFontFace.FontFormat extends java.lang.Enum<CssFontFace.FontFormat>
The Enum FontFormat.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FontFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CssFontFace.FontFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CssFontFace.FontFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final CssFontFace.FontFormat None
-
TrueType
public static final CssFontFace.FontFormat TrueType
"truetype"
-
OpenType
public static final CssFontFace.FontFormat OpenType
"opentype"
-
WOFF
public static final CssFontFace.FontFormat WOFF
"woff"
-
WOFF2
public static final CssFontFace.FontFormat WOFF2
"woff2"
-
EOT
public static final CssFontFace.FontFormat EOT
"embedded-opentype"
-
SVG
public static final CssFontFace.FontFormat SVG
"svg"
-
-
Method Detail
-
values
public static CssFontFace.FontFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CssFontFace.FontFormat c : CssFontFace.FontFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssFontFace.FontFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-