Defines a Font using file path.

See also
FontFamily

Summary

Public functions

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

Public properties

File

File path to font.

android
open String
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

file

val fileFile

File path to font.

identity

open val identityString

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.