public class ReactFontManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ReactFontManager |
getInstance() |
android.graphics.Typeface |
getTypeface(java.lang.String fontFamilyName,
int style,
android.content.res.AssetManager assetManager) |
void |
setTypeface(java.lang.String fontFamilyName,
int style,
android.graphics.Typeface typeface)
Add additional font family, or replace the exist one in the font memory cache.
|
public static ReactFontManager getInstance()
@Nullable
public android.graphics.Typeface getTypeface(java.lang.String fontFamilyName,
int style,
android.content.res.AssetManager assetManager)
public void setTypeface(java.lang.String fontFamilyName,
int style,
android.graphics.Typeface typeface)
style - Typeface#DEFAULT},
Typeface#BOLD},
Typeface#ITALIC},
Typeface#BOLD_ITALIC}