# Enum SurfaceFontWeight

java.lang.Object
java.lang.Enum<SurfaceFontWeight>
com.codename1.surfaces.SurfaceFontWeight

All Implemented Interfaces:
  `Comparable<SurfaceFontWeight>`

public enum SurfaceFontWeight extends Enum<SurfaceFontWeight>
Font weight of a surface text node. Platforms with a coarser weight scale round to the nearest supported weight; Android app widgets render `LIGHT`/`REGULAR`/`MEDIUM` as regular and `SEMIBOLD`/`BOLD` as bold.

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `BOLD`
  `LIGHT`
  `MEDIUM`
  `REGULAR`
  `SEMIBOLD`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getJsonName()`
  Returns the wire-format name used in the serialized descriptor.
  `static SurfaceFontWeight`
  `valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static SurfaceFontWeight[]`
  `values()`
  Returns an array containing the constants of this enum type, in the order they are declared.

  ### Methods inherited from class Enum

  `clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf`

  ### Methods inherited from class Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### LIGHT

    public static final SurfaceFontWeight LIGHT

  - ### REGULAR

    public static final SurfaceFontWeight REGULAR

  - ### MEDIUM

    public static final SurfaceFontWeight MEDIUM

  - ### SEMIBOLD

    public static final SurfaceFontWeight SEMIBOLD

  - ### BOLD

    public static final SurfaceFontWeight BOLD

- ## Method Details

  - ### values

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

  - ### valueOf

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

  - ### getJsonName

    public String getJsonName()
    Returns the wire-format name used in the serialized descriptor.