Does compose text APIs contain a way to easily add some “superscript” text? Aka some section which is attached to the top, and is a bit smaller than the rest of the text. Example in thread.
edit: (Yes it does, through annotated strings, super simple too, solution in thread.)
✅ 1
Stylianos Gakis
05/16/2023, 12:03 PM
Something like this, so I can add that “2”superscript next to the “a” in block A2 of this sheet and so on.
Stylianos Gakis
05/16/2023, 12:08 PM
Okay yeah I failed to google for it before, but turns out it’s very simple using an annotated string + a SpanStyle with BaselineShift.Superscript.