FontFamily

Class

Common
sealed class FontFamily(canLoadSynchronously: Boolean)

The primary typography interface for Compose applications.

Properties

Common

Deprecated Unused property that has no meaning. Do not use.

val canLoadSynchronously = canLoadSynchronously

Companion Object

Properties

Common
val Default: SystemFontFamily

The platform default font.

Common
val SansSerif = GenericFontFamily("sans-serif", "FontFamily.SansSerif")

Font family with low contrast and plain stroke endings.

See CSS sans-serif(https://www.w3.org/TR/css-fonts-3/#sans-serif)

Common
val Serif = GenericFontFamily("serif", "FontFamily.Serif")

The formal text style for scripts.

See CSS serif(https://www.w3.org/TR/css-fonts-3/#serif)

Common
val Monospace = GenericFontFamily("monospace", "FontFamily.Monospace")

Font family where glyphs have the same fixed width.

See CSS monospace(https://www.w3.org/TR/css-fonts-3/#monospace)

Common
val Cursive = GenericFontFamily("cursive", "FontFamily.Cursive")

Cursive, hand-written like font family.

If the device doesn't support this font family, the system will fallback to the default font.

See CSS cursive(https://www.w3.org/TR/css-fonts-3/#cursive)