Class

FontFamily

The primary typography interface for Compose applications.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
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

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

The formal text style for scripts.

See CSS serif

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

Font family where glyphs have the same fixed width.

See CSS 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