Example usage for Java android.graphics Typeface fields, constructors, methods, implement or subclass
The text is from its open source code.
Typeface | DEFAULT The default NORMAL typeface object |
Typeface | DEFAULT_BOLD The default BOLD typeface object. |
Typeface | SANS_SERIF The NORMAL style of the default sans serif typeface. |
Typeface | SERIF The NORMAL style of the default serif typeface. |
Typeface | MONOSPACE The NORMAL style of the default monospace typeface. |
int | NORMAL |
int | BOLD |
int | ITALIC |
int | BOLD_ITALIC |
Typeface | create(String familyName, @Style int style) Create a typeface object given a family name, and option style information. |
Typeface | create(Typeface family, @Style int style) Create a typeface object that best matches the specified existing typeface and the specified Style. |
Typeface | createFromAsset(AssetManager mgr, String path) Create a new typeface from the specified font data. |
Typeface | createFromFile(@Nullable File file) Create a new typeface from the specified font file. |
Typeface | createFromFile(@Nullable String path) Create a new typeface from the specified font file. |
Typeface | defaultFromStyle(@Style int style) Returns one of the default typeface objects, based on the specified style |
boolean | equals(Object o) |
int | getStyle() Returns the typeface's intrinsic style attributes |
boolean | isBold() Returns true if getStyle() has the BOLD bit set. |
boolean | isItalic() Returns true if getStyle() has the ITALIC bit set. |