setCustomFont

Sets a custom font to be used when rendering the text.

The font should be defined in your assets (see custom font documentation).

Return

The current instance for chaining.

Parameters

fontFamily

An instance of FontFamily representing the custom font.