DefaultFontLoader

Default implementation of a FontLoader.

Parameters

context

the Context from which to load the font resources

Default implementation of a FontLoader.

Default implementation of a FontLoader.

Constructors

Link copied to clipboard
constructor(context: Context?)
actual constructor()

Default implementation of a FontLoader.

expect constructor()
actual constructor()

Functions

Link copied to clipboard
actual open override fun loadFont(identifier: String, defaultValue: KalugaFont?): KalugaFont?

Attempts to load the KalugaFont resource associated with a given identifier. If no match is found, the defaultValue will be returned.

expect open override fun loadFont(identifier: String, defaultValue: KalugaFont?): KalugaFont?

Attempts to load the KalugaFont resource associated with a given identifier. If no match is found, the defaultValue will be returned.

actual open override fun loadFont(identifier: String, defaultValue: KalugaFont?): KalugaFont?

Attempts to load the KalugaFont resource associated with a given identifier. If no match is found, the defaultValue will be returned.