Stylianos Gakis
05/16/2023, 12:02 PMStylianos Gakis
05/16/2023, 12:03 PMStylianos Gakis
05/16/2023, 12:08 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.