Most visited

Recently visited

Text.FontWeight

public static final enum Text.FontWeight
extends Enum<Text.FontWeight>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Text.FontWeight>
     ↳ com.viro.core.Text.FontWeight


The weight of the font used to render Text. These constants map to numerical weights (100 to 900). Note that not all fonts support all weights: if a weight is not supported, its nearest neighbor will be used as a fallback.

Summary

Enum values

Text.FontWeight  Bold

Bold font weight (numerical value 700). 

Text.FontWeight  ExtraBlack

Extra black font weight (numerical value 900). 

Text.FontWeight  Heavy

Heavy font weight (numerical value 800). 

Text.FontWeight  Light

Light font weight (numerical value 300). 

Text.FontWeight  Medium

Medium font weight (numerical value 500). 

Text.FontWeight  Regular

Regular font weight (numerical value 400). 

Text.FontWeight  Semibold

Semibold font weight (numerical value 600). 

Text.FontWeight  Thin

Thin font weight (numerical value 200). 

Text.FontWeight  UltraLight

Ultra light font weight (numerical value 100). 

Public methods

static Text.FontWeight valueOf(String name)
static final FontWeight[] values()

Enum values

Bold

Text.FontWeight Bold

Bold font weight (numerical value 700).

ExtraBlack

Text.FontWeight ExtraBlack

Extra black font weight (numerical value 900).

Heavy

Text.FontWeight Heavy

Heavy font weight (numerical value 800).

Light

Text.FontWeight Light

Light font weight (numerical value 300).

Medium

Text.FontWeight Medium

Medium font weight (numerical value 500).

Regular

Text.FontWeight Regular

Regular font weight (numerical value 400).

Semibold

Text.FontWeight Semibold

Semibold font weight (numerical value 600).

Thin

Text.FontWeight Thin

Thin font weight (numerical value 200).

UltraLight

Text.FontWeight UltraLight

Ultra light font weight (numerical value 100).

Public methods

valueOf

Text.FontWeight valueOf (String name)

Parameters
name String

Returns
Text.FontWeight

values

FontWeight[] values ()

Returns
FontWeight[]

Hooray!