|
java-gnome version 4.0.15 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
Objectorg.freedesktop.bindings.Constant
org.freedesktop.bindings.Flag
org.gnome.pango.Weight
public class Weight
Constants used for selecting the weight of a font. 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.
| Field Summary | |
|---|---|
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
An intermediate weight between NORMAL and BOLD. |
static Weight |
ULTRABOLD
Even stronger than BOLD, is ULTRABOLD! |
static Weight |
ULTRALIGHT
The lightest text weight available. |
| Method Summary |
|---|
| Methods inherited from class org.freedesktop.bindings.Flag |
|---|
contains |
| Methods inherited from class org.freedesktop.bindings.Constant |
|---|
toString |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
NORMAL and BOLD.
public static final Weight ULTRABOLD
BOLD, is ULTRABOLD!
Sounds like a health food product.
public static final Weight ULTRALIGHT
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||