{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

Font.ResourceLoader


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