halilozercan/compose-richtext

How to change the base font size in a Material3RichText scope?

alexispurslane opened this issue · 1 comments

I'm displaying some Markdown text like so:

Material3RichText {
    Markdown(content = message.content)
}

and one thing I'd really like to be able to do is change the font size of the default text when it's displayed. Is there a way to do this? I looked at the RichTextStyle stuff, but it seems focused on everything but normal text.

Answer to my own question: use ProvideTextStyle with TextStyle(fontSize=<foo>.dp)