Enum Class FontCreateFlags

java.lang.Object
java.lang.Enum<FontCreateFlags>
com.datalogics.PDFL.FontCreateFlags
All Implemented Interfaces:
Serializable, Comparable<FontCreateFlags>, Constable

public enum FontCreateFlags extends Enum<FontCreateFlags>
Flags for creating fonts. If you want to subset a font, set both the Embedded and Subset flags
  • Enum Constant Details

    • EMBEDDED

      public static final FontCreateFlags EMBEDDED
      Embed the font. Create an embedded font. By itself, this will not subset the font.
    • SUBSET

      public static final FontCreateFlags SUBSET
      Subset the font. If you want to subset a font, set both the Embedded and Subset flags. You must call Document.EmbedFonts() to actually subset the font. Both embedding and subsetting a font creates a CFF font.
    • DO_NOT_EMBED

      public static final FontCreateFlags DO_NOT_EMBED
      Do not embed the font. You cannot set both this and the Subset flags. Nor can you set Embedded.
    • ENCODE_BY_GID

      public static final FontCreateFlags ENCODE_BY_GID
      Create a CIDFont with identity (GID) encoding.
    • DEFER_WIDTHS

      public static final FontCreateFlags DEFER_WIDTHS
      Wait to get the widths until later (this affects Type0 fonts only).
    • GIDOVERRIDE

      public static final FontCreateFlags GIDOVERRIDE
      Convert cp to gid with identity embedded.
    • TO_UNICODE

      public static final FontCreateFlags TO_UNICODE
      Create a ToUnicode CMap.
    • ALL_WIDTHS

      public static final FontCreateFlags ALL_WIDTHS
      Supply the entire widths table (this affects Type0 fonts only).
    • EMBED_OPEN_TYPE

      public static final FontCreateFlags EMBED_OPEN_TYPE
      Embed an OpenType style font subset, if appropriate.
  • Method Details

    • values

      public static FontCreateFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FontCreateFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null