Google is committed to advancing racial equity for Black communities. See how.

Font

@Immutable interface Font
androidx.compose.ui.text.font.Font

The interface of the font resource.

Summary

Nested classes
abstract

Interface used to load a font resource.

Extension functions
From androidx.compose.ui.text.font
FontListFontFamily

Create a FontFamily from this single font.

Properties
abstract FontStyle

The style of the font, normal or italic.

abstract FontWeight

The weight of the font.

Properties

style

abstract val style: FontStyle

The style of the font, normal or italic. The system uses this to match a font to a font request that is given in a androidx.compose.ui.text.SpanStyle.

weight

abstract val weight: FontWeight

The weight of the font. The system uses this to match a font to a font request that is given in a androidx.compose.ui.text.SpanStyle.