Custom

data class Custom @JvmOverloads constructor(@FontRes val normalFont: Int, @FontRes val normalItalicFont: Int? = null, @FontRes val lightFont: Int? = null, @FontRes val mediumFont: Int? = null, @FontRes val semiBold: Int? = null, @FontRes val boldFont: Int? = null, @FontRes val extraBoldFont: Int? = null) : Font

Custom font family.

Parameters

normalFont

integer font resource id for normal weight.

normalItalicFont

integer font resource id for normal italic weight.

lightFont

integer font resource id for light weight.

mediumFont

integer font resource id for medium weight.

semiBold

integer font resource id for semi bold weight.

boldFont

integer font resource id for bold weight.

extraBoldFont

integer font resource id for extra bold weight.

Constructors

Link copied to clipboard
constructor(@FontRes normalFont: Int, @FontRes normalItalicFont: Int? = null, @FontRes lightFont: Int? = null, @FontRes mediumFont: Int? = null, @FontRes semiBold: Int? = null, @FontRes boldFont: Int? = null, @FontRes extraBoldFont: Int? = null)

Properties

Link copied to clipboard
val boldFont: Int? = null
Link copied to clipboard
val extraBoldFont: Int? = null
Link copied to clipboard
val lightFont: Int? = null
Link copied to clipboard
val mediumFont: Int? = null
Link copied to clipboard
Link copied to clipboard
val normalItalicFont: Int? = null
Link copied to clipboard
val semiBold: Int? = null