ResourceFont



Defines a Font using resource name.

See also
FontFamily

Summary

Public functions

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

Public properties

open String
android
open FontLoadingStrategy

Loading strategy for this font.

android
String

The resource name in classpath.

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

identity

open val identityString

loadingStrategy

@ExperimentalTextApi
open val loadingStrategyFontLoadingStrategy

Loading strategy for this font.

name

val nameString

The resource name in classpath.

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.