Font

data class Font(@FontRes val fontFamily: Int? = null, val fontSizeSp: Float? = null, val fontWeight: Int? = null, val letterSpacingSp: Float? = null) : Parcelable

Constructors

Link copied to clipboard
constructor(@FontRes fontFamily: Int? = null, fontSizeSp: Float? = null, fontWeight: Int? = null, letterSpacingSp: Float? = null)

Properties

Link copied to clipboard
val fontFamily: Int? = null

The font used in text. This should be a resource ID value.

Link copied to clipboard
val fontSizeSp: Float? = null

The font size used for the text. This should represent a sp value.

Link copied to clipboard
val fontWeight: Int? = null

The font weight used for the text.

Link copied to clipboard
val letterSpacingSp: Float? = null

The letter spacing used for the text. This should represent a sp value.

Functions

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