Class

GenericFontFamily

Defines a font family with a generic font family name.

Source set: Common
public class GenericFontFamily internal constructor(public val name: String, private val fontFamilyName: String) :
    SystemFontFamily()

Defines a font family with a generic font family name.

If the platform cannot find the passed generic font family, use the platform default one.

Parameters

name a generic font family name, e.g. "serif", "sans-serif"
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: