ReactFontManager

Deprecated

This class is deprecated and will be deleted in the near future. Please use [com.facebook.react.common.assets.ReactFontManager] instead.

Responsible for loading and caching Typeface objects.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addCustomFont(fontFamily: String, font: Typeface?)
fun addCustomFont(context: Context, fontFamily: String, fontId: Int)
Link copied to clipboard
fun getTypeface(fontFamilyName: String, style: Int, assetManager: AssetManager): Typeface
fun getTypeface(fontFamilyName: String, weight: Int, italic: Boolean, assetManager: AssetManager): Typeface
fun getTypeface(fontFamilyName: String, style: Int, weight: Int, assetManager: AssetManager): Typeface
Link copied to clipboard
fun setTypeface(fontFamilyName: String, style: Int, typeface: Typeface)