Enum EmbeddingMode

java.lang.Object
java.lang.Enum<EmbeddingMode>
org.apache.fop.fonts.EmbeddingMode
All Implemented Interfaces:
Serializable, Comparable<EmbeddingMode>, java.lang.constant.Constable

public enum EmbeddingMode extends 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.
  • Enum Constant Details

    • AUTO

      public static final EmbeddingMode AUTO
      Default option: assumes FULL for Type 1 fonts and SUBSET for TrueType fonts.
    • FULL

      public static final EmbeddingMode FULL
      Full font embedding: This means the whole of the font is written to file.
    • SUBSET

      public static final EmbeddingMode SUBSET
      Subset font embedding: Only the mandatory tables and a subset of glyphs are written to file.
  • Method Details

    • values

      public static EmbeddingMode[] 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

      public static EmbeddingMode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Returns the name of this embedding mode.
      Returns:
      the name of this embedding mode in lower case.
    • getValue

      public static EmbeddingMode getValue(String value)
      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