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

Font.ResourceLoader

public interface Font.ResourceLoader


Interface used to load a font resource.

Summary

Public methods

abstract @NonNull Object
load(@NonNull Font font)

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

Public methods

load

abstract @NonNull Object load(@NonNull Font font)

Loads resource represented by the Font object.

Parameters
@NonNull Font font

Font to be loaded

Returns
@NonNull Object

platform specific typeface

Throws
kotlin.Exception

if font cannot be loaded

kotlin.IllegalStateException

if font cannot be loaded