Function

FontFamily

Construct a font family that contains list of custom font files.

FontFamily

Source set: Common
fun FontFamily(fonts: List<Font>): FontFamily

Construct a font family that contains list of custom font files.

Parameters

fonts list of font files

FontFamily

Source set: Common
fun FontFamily(vararg fonts: Font): FontFamily

Construct a font family that contains list of custom font files.

Parameters

fonts list of font files

FontFamily

Source set: Common
fun FontFamily(typeface: Typeface): FontFamily

Construct a font family that contains loaded font family: Typeface.

Parameters

typeface A typeface instance.

FontFamily

Source set: Android
fun FontFamily(typeface: Typeface): FontFamily

Creates a FontFamily from Android Typeface.

Parameters

typeface Android Typeface instance

Last updated: