FontLoader

interface FontLoader

Provides a mechanism to load or lookup Fonts.

Functions

Link copied to clipboard
abstract suspend operator fun invoke(info: FontInfo.() -> Unit): Font?

Tries to find a loaded font matching the given info.

open suspend operator fun invoke(font: Font, info: FontInfo.() -> Unit): Font?

Tries to find a loaded font matching the given font with info overrides.

abstract suspend operator fun invoke(source: String, info: FontInfo.() -> Unit): Font?

Tries to loaded a font matching the given info.