androidx.compose.ui.text.font

FontFamily

Sealed class · from org.jetbrains.compose.ui:ui-text:1.12.2

No hand-written docs yet.

The primary typography interface for Compose applications.

sealed class FontFamily(
    canLoadSynchronously: Boolean,
)

Kinds of FontFamily

Anywhere a FontFamily is expected, you can pass any of these.

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a FontFamily.

Properties

Default

val Default: SystemFontFamily

The platform default font.

SansSerif

val SansSerif: GenericFontFamily

Font family with low contrast and plain stroke endings.

Serif

val Serif: GenericFontFamily

The formal text style for scripts.

Monospace

val Monospace: GenericFontFamily

Font family where glyphs have the same fixed width.

Cursive

val Cursive: GenericFontFamily

Cursive, hand-written like font family.

Nested types

Library docs

The primary typography interface for Compose applications.