Interface

Font.ResourceLoader

Interface used to load a font resource.

Common
Deprecated Replaced with FontFamily.Resolver during the introduction of async fonts, all usages should be replaced. Custom subclasses can be converted into a FontFamily.Resolver by calling createFontFamilyResolver(myFontFamilyResolver, context)
interface ResourceLoader

Interface used to load a font resource.

Functions

load

fun load(font: Font): Any

Loads resource represented by the Font object.

Parameters

font Font to be loaded

Returns

platform specific typeface