Enum Class StyleTag

java.lang.Object
java.lang.Enum<StyleTag>
org.freedesktop.harfbuzz.StyleTag
All Implemented Interfaces:
Serializable, Comparable<StyleTag>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum StyleTag extends Enum<StyleTag> implements Enumeration
Since:
3.0.0
  • Enum Constant Details

    • ITALIC

      public static final StyleTag ITALIC
      Used to vary between non-italic and italic. A value of 0 can be interpreted as "Roman" (non-italic); a value of 1 can be interpreted as (fully) italic.
    • OPTICAL_SIZE

      public static final StyleTag OPTICAL_SIZE
      Used to vary design to suit different text sizes. Non-zero. Values can be interpreted as text size, in points.
    • SLANT_ANGLE

      public static final StyleTag SLANT_ANGLE
      Used to vary between upright and slanted text. Values must be greater than -90 and less than +90. Values can be interpreted as the angle, in counter-clockwise degrees, of oblique slant from whatever the designer considers to be upright for that font design. Typical right-leaning Italic fonts have a negative slant angle (typically around -12)
    • SLANT_RATIO

      public static final StyleTag SLANT_RATIO
      same as HBSTYLETAGSLANTANGLE expression as ratio. Typical right-leaning Italic fonts have a positive slant ratio (typically around 0.2)
    • WIDTH

      public static final StyleTag WIDTH
      Used to vary width of text from narrower to wider. Non-zero. Values can be interpreted as a percentage of whatever the font designer considers “normal width” for that font design.
    • WEIGHT

      public static final StyleTag WEIGHT
      Used to vary stroke thicknesses or other design details to give variation from lighter to blacker. Values can be interpreted in direct comparison to values for usWeightClass in the OS/2 table, or the CSS font-weight property.
  • Method Details

    • values

      public static StyleTag[] 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 StyleTag 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
    • of

      public static StyleTag of(int value)
      Create a new StyleTag for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static StyleTag of(MemorySegment address)
      Create a new StyleTag for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the StyleTag class.
      Returns:
      the GType