AssetFont

data class AssetFont(val path: String, val fontWeight: FontWeight = FontWeight.Normal, val fontStyle: Int = FontStyle.Normal.value) : PaywallFont

Constructors

Link copied to clipboard
constructor(path: String, 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

Full path starting from the assets directory (i.e. dir/myfont.ttf for assets/dir/myfont.ttf).