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

FontFamily

@Immutable sealed class FontFamily
kotlin.Any
   ↳ androidx.ui.text.font.FontFamily

The base class of the font families.

Summary

Properties

Boolean

Companion properties

GenericFontFamily

Cursive, hand-written like font family.

SystemFontFamily

The platform default font.

GenericFontFamily

Font family where glyphs have the same fixed width.

GenericFontFamily

Font family with low contrast and plain stroke endings.

GenericFontFamily

The formal text style for scripts.

Properties

canLoadSynchronously

val canLoadSynchronously: Boolean

Companion properties

Cursive

val Cursive: GenericFontFamily

Cursive, hand-written like font family.

If the device doesn't support this font family, the system will fallback to the default font.


//Unresolved: androidx.ui.text.samples.FontFamilyCursiveSample

Default

val Default: SystemFontFamily

The platform default font.

Monospace

val Monospace: GenericFontFamily

Font family where glyphs have the same fixed width.


//Unresolved: androidx.ui.text.samples.FontFamilyMonospaceSample

SansSerif

val SansSerif: GenericFontFamily

Font family with low contrast and plain stroke endings.


//Unresolved: androidx.ui.text.samples.FontFamilySansSerifSample

Serif

val Serif: GenericFontFamily

The formal text style for scripts.


//Unresolved: androidx.ui.text.samples.FontFamilySerifSample