Hello, question: I set a custom theme with Typography of my own font
@Composable
fun MyTheme(
content: @Composable () -> Unit
) {
MaterialTheme(
typography = Typography(appFontFamily),
content = content
)
}
Using this, it correctly applies the font family if I do a normal text, but as soon as I apply a TextStyle to a
Text
, it doesn't apply that default font family anymore
val displayJumboBold = TextStyle(
fontSize = 40.sp,
fontWeight = FontWeight.Bold,
lineHeight = 48.sp
)
I assume this is because the TextStyle defaults to null for font family if I don't explicitly set it, but should it not fall back to the default of the Theme that I've set?