Closed jbb1003 closed 3 months ago
Summary: Although looking at the code shows support for fontFamily, I cannot make it work.
To reproduce:
@Preview @Composable fun DebugMarkDown() { Column(modifier = Modifier.background(Color.Blue)) { val style = TextStyle(fontFamily = FontFamily.Cursive, color = Color.White) val s = "Test" Text(text = s, style = style) MarkdownText( markdown = s, style = style ) } }
which previews as:
Expectation: Text would be rendered identically for both Text() and MarkdownText()
Actual: Text() renders using fontFamily, but MarkdownText ignores it.
I wasn't using the latest version which DOES have fontFamily support.
Summary: Although looking at the code shows support for fontFamily, I cannot make it work.
To reproduce:
which previews as:
Expectation: Text would be rendered identically for both Text() and MarkdownText()
Actual: Text() renders using fontFamily, but MarkdownText ignores it.