Package org.apache.fop.fonts
Enum EmbeddingMode
- All Implemented Interfaces:
Serializable
,Comparable<EmbeddingMode>
,java.lang.constant.Constable
This enumerates the embedding mode of fonts; full; subset; auto (auto defaults to full for
Type 1 fonts and subset for TrueType fonts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of this embedding mode.static EmbeddingMode
Returns the embedding mode corresponding to the given name.static EmbeddingMode
Returns the enum constant of this type with the specified name.static EmbeddingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO
Default option: assumes FULL for Type 1 fonts and SUBSET for TrueType fonts. -
FULL
Full font embedding: This means the whole of the font is written to file. -
SUBSET
Subset font embedding: Only the mandatory tables and a subset of glyphs are written to file.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Returns the name of this embedding mode.- Returns:
- the name of this embedding mode in lower case.
-
getValue
Returns the embedding mode corresponding to the given name.- Parameters:
value
- the name of an embedding mode (not case sensitive)- Returns:
- the corresponding embedding mode
-