{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

GenericFontFamily

kotlin.Any
   ↳ androidx.compose.ui.text.font.FontFamily
     ↳ androidx.compose.ui.text.font.SystemFontFamily
       ↳ androidx.compose.ui.text.font.GenericFontFamily

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.

See also
SansSerif
Serif
Monospace
Cursive

Summary

Public functions

open String
Cmn

Public properties

String

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

Cmn

Inherited properties

From androidx.compose.ui.text.font.FontFamily

Public functions

toString

open fun toString(): String

Public properties

name

val nameString

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