AndroidFontResourceLoader

class AndroidFontResourceLoader : Font.ResourceLoader
kotlin.Any
   ↳ androidx.ui.core.text.AndroidFontResourceLoader

Android implementation for Font.ResourceLoader

Summary

Public constructors

<init>(context: Context)

Android implementation for Font.ResourceLoader

Public methods

Typeface
load(font: Font)

Loads resource represented by the Font object.

Public constructors

<init>

AndroidFontResourceLoader(context: Context)

Android implementation for Font.ResourceLoader

Public methods

load

fun load(font: Font
): Typeface

Loads resource represented by the Font object.

Parameters
font: Font = null: Font Font to be loaded
Return
platform specific font