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

FontListFontFamily

@Immutable data class FontListFontFamily : FileBasedFontFamily, List<Font>
kotlin.Any
   ↳ androidx.ui.text.font.FontFamily
   ↳ androidx.ui.text.font.FileBasedFontFamily
   ↳ androidx.ui.text.font.FontListFontFamily

Defines a font family with list of Font.


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

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

Summary

Public constructors

<init>(fonts: List<Font>)

Defines a font family with list of Font.

Inherited extension functions

From androidx.ui.util.kotlin.collections.List
Unit
List<T>.fastForEach(action: (T) -> Unit)

Iterates through a List using the index and calls action for each item.

Properties

List<Font>

Public constructors

<init>

FontListFontFamily(fonts: List<Font>)

Defines a font family with list of Font.


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

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

Properties

fonts

val fonts: List<Font>