Enum Class Panose.Field

java.lang.Object
java.lang.Enum<Panose.Field>
org.docx4j.fonts.foray.font.format.Panose.Field
All Implemented Interfaces:
Serializable, Comparable<Panose.Field>, Constable
Enclosing class:
Panose

public static enum Panose.Field extends Enum<Panose.Field>
Enumeration of the fields that comprise a PANOSE description.
See Also:
  • "http://fonts.apple.com/TTRefMan/RM06/Chap6OS2.html"
  • Enum Constant Details

    • FAMILY_TYPE

      public static final Panose.Field FAMILY_TYPE
      The bFamilyType field.
    • SERIF_STYLE

      public static final Panose.Field SERIF_STYLE
      The bSerifStyle field.
    • WEIGHT

      public static final Panose.Field WEIGHT
      The bWeight field.
    • PROPORTION

      public static final Panose.Field PROPORTION
      The bProportion field.
    • CONTRAST

      public static final Panose.Field CONTRAST
      The bContrast field.
    • STROKE_VARIATION

      public static final Panose.Field STROKE_VARIATION
      The bStrokeVariatoon field.
    • ARM_STYLE

      public static final Panose.Field ARM_STYLE
      The bArmStyle field.
    • LETTERFORM

      public static final Panose.Field LETTERFORM
      The bLetterform field.
    • MIDLINE

      public static final Panose.Field MIDLINE
      The bMidline field.
    • X_HEIGHT

      public static final Panose.Field X_HEIGHT
      The bXHeight field.
  • Field Details

    • index

      private byte index
      The 0-based index of this element in the PANOSE array.
    • maxValue

      private byte maxValue
      The maximum value that is permissible for this element.
  • Constructor Details

    • Field

      private Field(byte index, byte maxValue)
      Private Constructor.
      Parameters:
      index - The 0-based index of this element in the PANOSE array.
      maxValue - The maximum value that is permissible for this element.
  • Method Details

    • values

      public static Panose.Field[] 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 Panose.Field 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
    • getIndex

      public byte getIndex()
      Returns the 0-based index of this element in the PANOSE array.
      Returns:
      The 0-based index of this element in the PANOSE array.
    • getMaxValue

      public byte getMaxValue()
      Returns the maximum valid value for this field.
      Returns:
      The maximum valid value for this field.