Stylianos Gakis
05/16/2023, 12:02 PMText(
text = buildAnnotatedString {
append("Hello")
withStyle(
SpanStyle(
baselineShift = BaselineShift.Superscript,
fontSize = 16.sp,
)
) {
append(" superscript")
}
},
)
This outputs something like this [pic attached] already
Found it in this SOE post.