ResourceFont

data class ResourceFont(@FontRes val resourceId: Int, val fontWeight: FontWeight = FontWeight.Normal, val fontStyle: Int = FontStyle.Normal.value) : PaywallFont

Constructors

Link copied to clipboard
constructor(@FontRes resourceId: Int, fontWeight: FontWeight = FontWeight.Normal, fontStyle: Int = FontStyle.Normal.value)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard

The style of the font, normal or italic. The system uses this to match a font to a font request. We use int instead of FontStyle because FontStyle is not compatible with Java.

Link copied to clipboard

The weight of the font. The system uses this to match a font to a font request.

Link copied to clipboard

The resource ID of the font file in font resources.