The Developer Preview for Android 11 is now available; test it out and share your feedback.

Font

interface Font
androidx.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.ui.text.font
FontListFontFamily

Create a FontFamily from this single font.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

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.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.ui.text.SpanStyle.