CustomFontProvider

Class that allows to provide a font family for all text styles.

Parameters

fontFamily

the FontFamily to be used for all text styles.

Constructors

Link copied to clipboard
constructor(fontFamily: FontFamily)

Functions

Link copied to clipboard
open override fun getFont(type: TypographyType): FontFamily

Returns the font to be used for the given TypographyType. If null is returned, the default font will be used.