Class

FontFamily

The primary typography interface for Compose applications.

Source set: Common
sealed class FontFamily(canLoadSynchronously: Boolean)

The primary typography interface for Compose applications.

Properties

canLoadSynchronously

Deprecated

Unused property that has no meaning. Do not use.

Source set: Common
val canLoadSynchronously = canLoadSynchronously

Companion Object

Properties

Source set: Common
val Default: SystemFontFamily

The platform default font.

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

Font family with low contrast and plain stroke endings.

See CSS sans-serif

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

The formal text style for scripts.

See CSS serif

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

Font family where glyphs have the same fixed width.

See CSS monospace

Source set: 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

Last updated: