getFont

abstract 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.

Return

the FontFamily to be used for the given TypographyType.

Parameters

type

the TypographyType for which the font is being requested.