Function

FontFamily

Creates a FontFamily from Android Typeface.

FontFamily

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

Creates a FontFamily from Android Typeface.

Parameters

typeface Android Typeface instance

FontFamily

Source set: Common
@Stable public 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
@Stable public 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
@Stable public fun FontFamily(typeface: Typeface): FontFamily

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

Parameters

typeface A typeface instance.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: