Enum Class CoverageLevel

java.lang.Object
java.lang.Enum<CoverageLevel>
org.gnome.pango.CoverageLevel
All Implemented Interfaces:
Serializable, Comparable<CoverageLevel>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum CoverageLevel extends Enum<CoverageLevel> implements Enumeration

PangoCoverageLevel is used to indicate how well a font can represent a particular Unicode character for a particular script.

Since 1.44, only NONE and EXACT will be returned.

  • Enum Constant Details

    • NONE

      public static final CoverageLevel NONE
      The character is not representable with the font.
    • FALLBACK

      public static final CoverageLevel FALLBACK
      The character is represented in a way that may be comprehensible but is not the correct graphical form. For instance, a Hangul character represented as a a sequence of Jamos, or a Latin transliteration of a Cyrillic word.
    • APPROXIMATE

      public static final CoverageLevel APPROXIMATE
      The character is represented as basically the correct graphical form, but with a stylistic variant inappropriate for the current script.
    • EXACT

      public static final CoverageLevel EXACT
      The character is represented as the correct graphical form.
  • Method Details

    • values

      public static CoverageLevel[] 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 CoverageLevel 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 CoverageLevel of(int value)
      Create a new CoverageLevel 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 CoverageLevel of(MemorySegment address)
      Create a new CoverageLevel 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 CoverageLevel class.
      Returns:
      the GType