Closed aphexcx closed 1 year ago
Hi, @aphexcx!
Thank you for contributing!
Can you add it to the sample project? I mean, add a style with bodyMedium
to show how it works.
MarkdownText(
markdown = message.content,
fontResource = R.font.soehne_buch,
style = typography.bodyMedium // line height of 24sp is now respected
)
Closes #17 and closes #41 respectively.
Only supports line height specified in SP, not EM. I wasn't sure of the correct calculation to apply for EMs -- I read https://stackoverflow.com/questions/69311233/android-compose-has-textsize-unit-em but that may be out of scope for this PR. Regardless, I tested this and it works great: