public enum SurfaceFontWeight
- Object
- Enum<SurfaceFontWeight>
- 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
LIGHTREGULAR
REGULARMEDIUM
MEDIUMSEMIBOLD
SEMIBOLDBOLD
BOLDMethod 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.