Summary:
Methods
| Inherited Methods
TypefaceCompat
public
class
TypefaceCompat
extends Object
java.lang.Object | |
↳ | androidx.core.graphics.TypefaceCompat |
Helper for accessing features in Typeface
.
Summary
Public methods | |
---|---|
static
Typeface
|
create(Context context, Typeface family, int style)
Retrieves the best matching typeface given the family, style and context. |
Inherited methods | |
---|---|
Public methods
create
public static Typeface create (Context context, Typeface family, int style)
Retrieves the best matching typeface given the family, style and context. If null is passed for the family, then the "default" font will be chosen.
Parameters | |
---|---|
context |
Context : The context used to retrieve the font. |
family |
Typeface : The font family. May be null. |
style |
int : The style of the typeface. e.g. NORMAL, BOLD, ITALIC, BOLD_ITALIC |
Returns | |
---|---|
Typeface |
The best matching typeface. |