Enum Class FontType

java.lang.Object
java.lang.Enum<FontType>
com.dua3.utility.text.FontType
All Implemented Interfaces:
Serializable, Comparable<FontType>, Constable

public enum FontType extends Enum<FontType>
The font type, describing of character widths are fixed or proportional.
  • Enum Constant Details

    • PROPORTIONAL

      public static final FontType PROPORTIONAL
      Represents a font type where the spacing between characters is proportional to their widths. This means each character takes up space according to its visual size, providing a more natural text appearance.
    • MONOSPACED

      public static final FontType MONOSPACED
      Represents a font type where the spacing between characters is the same for all characters, like a font used by a typewriter.
  • Method Details

    • values

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