public class Weight
extends org.freedesktop.bindings.Flag
NORMAL
is the default corresponding to text as we are generally accustomed to
seeing it.
A common use of these constants is to make text in a TextView strong; use
TextTag's setWeight()
and
pass in BOLD
.
Note that most fonts do not implement all the values here. If you specify a weight that is not directly available, the result should be approximated by the closest one, but you are somewhat at the mercy of the $diety as to what you actually get.
Modifier and Type | Field and Description |
---|---|
static Weight |
BOLD
Bold text.
|
static Weight |
HEAVY
The heavy weight.
|
static Weight |
LIGHT
Light weight text.
|
static Weight |
NORMAL
The default font weight.
|
static Weight |
SEMIBOLD
|
static Weight |
ULTRABOLD
Even stronger than
BOLD , is ULTRABOLD ! |
static Weight |
ULTRALIGHT
The lightest text weight available.
|
public static final Weight BOLD
This represents a font weight value of 700
,
apparently.
public static final Weight HEAVY
ULTRABOLD
department.public static final Weight LIGHT
public static final Weight NORMAL
This has a value of 400
, apparently.
public static final Weight SEMIBOLD
public static final Weight ULTRABOLD
BOLD
, is ULTRABOLD
!
Sounds like a health food product.public static final Weight ULTRALIGHT