GoogleFont

data class GoogleFont(val fontName: String, val fontProvider: GoogleFontProvider, val fontWeight: FontWeight = FontWeight.Normal, val fontStyle: Int = FontStyle.Normal.value) : PaywallFont

Represents a downloadable Google Font.

Constructors

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

Name of the Google font you want to use.

Link copied to clipboard

Provider of the Google font.

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.