FontStyle
public
final
class
FontStyle
extends Object
| java.lang.Object | |
| ↳ | android.graphics.fonts.FontStyle |
A font style object. This class represents a single font style which is a pair of weight value and slant value. Here are common font styles examples:
final FontStyle NORMAL = new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT);
final FontStyle BOLD = new FontStyle(FONT_WEIGHT_BOLD, FONT_SLANT_UPRIGHT);
final FontStyle ITALIC = new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_ITALIC);
final FontStyle BOLD_ITALIC = new FontStyle(FONT_WEIGHT_BOLD, FONT_SLANT_ITALIC);
Summary
Constants | |
|---|---|
int |
FONT_SLANT_ITALIC
A font slant value for italic |
int |
FONT_SLANT_UPRIGHT
A font slant value for upright |
int |
FONT_WEIGHT_BLACK
A font weight value for the black weight |
int |
FONT_WEIGHT_BOLD
A font weight value for the bold weight. |
int |
FONT_WEIGHT_EXTRA_BOLD
A font weight value for the extra-bold weight |
int |
FONT_WEIGHT_EXTRA_LIGHT
A font weight value for the extra-light weight |
int |
FONT_WEIGHT_LIGHT
A font weight value for the light weight |
int |
FONT_WEIGHT_MAX
A maximum weight value for the font |
int |
FONT_WEIGHT_MEDIUM
A font weight value for the medium weight |
int |
FONT_WEIGHT_MIN
A minimum weight value for the font |
int |
FONT_WEIGHT_NORMAL
A font weight value for the normal weight |
int |
|