public enum SurfaceFontWeight

  1. Object
  2. Enum<SurfaceFontWeight>
  3. SurfaceFontWeight

ImplementsComparable<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 constants

LIGHT
REGULAR
MEDIUM
SEMIBOLD
BOLD

Methods

public static SurfaceFontWeight[] values()
public static SurfaceFontWeight valueOf(String name)
public String getJsonName()Returns the wire-format name used in the serialized descriptor.

Inherited methods

Enum constant details

LIGHT

LIGHT

REGULAR

REGULAR

MEDIUM

MEDIUM

SEMIBOLD

SEMIBOLD

BOLD

BOLD

Method details

values

public static SurfaceFontWeight[] values()

valueOf

public static SurfaceFontWeight valueOf(String name)

getJsonName

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