Hassaan
07/28/2023, 7:04 AMmontserrat_regular.ttf
and make a fontFamily
val Montserrat = FontFamily(
Font(R.font.montserrat_regular),
)
and then typography:
val Typography = Typography(
labelSmall = TextStyle(
fontFamily = Montserrat,
fontWeight = FontWeight.Bold,
fontSize = 14.sp
),
bodyLarge = TextStyle(
fontFamily = Montserrat,
fontWeight = FontWeight.Normal,
fontSize = 14.sp
)
)
my question is: how this labelSmall
textStyle having fontWeight.Bold
behaves differently if i have added extra font montserrat_bold.ttf
and added to fontFamily like this:
val Montserrat = FontFamily(
Font(R.font.montserrat_regular),
Font(R.font.montserrat_bold, FontWeight.Bold)
)