The second Android 11 Developer Preview 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.

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.