Defines a Font using byte array with loaded font data.

See also
FontFamily

Summary

Public functions

open operator Boolean
equals(other: Any?)
android
open Int
android
open String
android

Public properties

ByteArray

Byte array with loaded font data.

android
open String

Unique identity for a font.

android
open FontLoadingStrategy

Loading strategy for this font.

android
open FontStyle

The style of the font, normal or italic.

android
open FontWeight

The weight of the font.

android

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

data

val dataByteArray

Byte array with loaded font data.

identity

open val identityString

Unique identity for a font. Used internally to distinguish fonts.

loadingStrategy

@ExperimentalTextApi
open val loadingStrategyFontLoadingStrategy

Loading strategy for this font.

style

open val styleFontStyle

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

open val weightFontWeight

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.