Weird behavior with annotated string: `textStyle.t...
# compose
y
Weird behavior with annotated string:
textStyle.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?