getAnnotatedString
fun Resources.getAnnotatedString(@StringRes id: Int, density: Density? = null, vararg formatArgs: Any): AnnotatedString
Converts a html-styled resource text to an AnnotatedString.
Tested with:
bold:
italic:
underline:
subscript:
superscript:
foreground color:
monospace font family: