Font.ResourceLoader

Added in 1.0.0
Deprecated in 1.2.0
Known direct subclasses
FontLoader

This class is deprecated. Replaced with PlatformFontLoader during the introduction of async fonts, all usages should be replaced


Interface used to load a font resource.

Summary

Public functions

Any
load(font: Font)

This function is deprecated. Replaced by FontFamily.Resolver, this method should not be called

Cmn

Public functions

load

fun load(font: Font): Any

Loads resource represented by the Font object.

Parameters
font: Font

Font to be loaded

Returns
Any

platform specific typeface

Throws
kotlin.Exception

if font cannot be loaded

kotlin.IllegalStateException

if font cannot be loaded