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.