Java android.graphics Typeface fields, constructors, methods, implement or subclass

Example usage for Java android.graphics Typeface fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics Typeface.

The text is from its open source code.

Field

TypefaceDEFAULT
The default NORMAL typeface object
TypefaceDEFAULT_BOLD
The default BOLD typeface object.
TypefaceSANS_SERIF
The NORMAL style of the default sans serif typeface.
TypefaceSERIF
The NORMAL style of the default serif typeface.
TypefaceMONOSPACE
The NORMAL style of the default monospace typeface.
intNORMAL
intBOLD
intITALIC
intBOLD_ITALIC

Method

Typefacecreate(String familyName, @Style int style)
Create a typeface object given a family name, and option style information.
Typefacecreate(Typeface family, @Style int style)
Create a typeface object that best matches the specified existing typeface and the specified Style.
TypefacecreateFromAsset(AssetManager mgr, String path)
Create a new typeface from the specified font data.
TypefacecreateFromFile(@Nullable File file)
Create a new typeface from the specified font file.
TypefacecreateFromFile(@Nullable String path)
Create a new typeface from the specified font file.
TypefacedefaultFromStyle(@Style int style)
Returns one of the default typeface objects, based on the specified style
booleanequals(Object o)
intgetStyle()
Returns the typeface's intrinsic style attributes
booleanisBold()
Returns true if getStyle() has the BOLD bit set.
booleanisItalic()
Returns true if getStyle() has the ITALIC bit set.