Custom

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)

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.