ParcelableTextStyle
data class ParcelableTextStyle @JvmOverloads constructor(val fontFamily: List<ParcelableFont>? = null, val fontWeight: FontWeight? = null, val fontSize: TextUnit? = null, val lineHeight: TextUnit? = null) : Parcelable
Parcelable version of TextStyle that can be used in ParcelableUiTypography. Customizations are limited to the most important TextStyle parameters. Font family is represented as a list of ParcelableFont objects.
Constructors
Link copied to clipboard
constructor(fontFamily: List<ParcelableFont>? = null, fontWeight: FontWeight? = null, fontSize: TextUnit? = null, lineHeight: TextUnit? = null)
Properties
Link copied to clipboard
List of ParcelableFont objects representing the font family. Defaults to null.
Link copied to clipboard
Font weight. Defaults to null.
Link copied to clipboard
Line height. Defaults to null.