The second Android 11 Developer Preview is now available, test it out and share your feedback.

GenericFontFamily

@Immutable class GenericFontFamily : SystemFontFamily
kotlin.Any
   ↳ androidx.ui.text.font.FontFamily
   ↳ androidx.ui.text.font.SystemFontFamily
   ↳ androidx.ui.text.font.GenericFontFamily

Defines a font family with an generic font family name.

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

Summary

Properties

String

a generic font family name, e.

Properties

name

val name: String

a generic font family name, e.g. "serif", "sans-serif"