Package org.docx4j.fonts.fop.fonts
Enum EmbeddingMode
java.lang.Object
java.lang.Enum<EmbeddingMode>
org.docx4j.fonts.fop.fonts.EmbeddingMode
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EmbeddingMode>,java.lang.constant.Constable
public enum EmbeddingMode extends java.lang.Enum<EmbeddingMode>
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
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description AUTODefault option: assumes FULL for Type 1 fonts and SUBSET for TrueType fonts.FULLFull font embedding: This means the whole of the font is written to file.SUBSETSubset font embedding: Only the mandatory tables and a subset of glyphs are written to file. -
Method Summary
Modifier and Type Method Description java.lang.StringgetName()Returns the name of this embedding mode.static EmbeddingModegetValue(java.lang.String value)Returns the embedding mode corresponding to the given name.static EmbeddingModevalueOf(java.lang.String name)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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getName
public java.lang.String 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
-