Yann Badoual
09/12/2020, 9:32 AMtextStyle.toSpanStyle()
is setting fontFamily
to DefaultFontFamily
, which is making it not behave the same as ProvideTextStyle(textStyle)
I tried merging from currentTextStyle to reproduce the behavior of ProvideTextStyle
, but it's not working either (textStyle = currentTextStyle().merge(MaterialTheme.typography.caption)
)
Setting fontFamily
to null on the SpanStyle
does the trick.
Is this the expected behavior?