How can you print a string with a subscript or superscript? Can you do this without an external library? I want this to display in a TextView in Android.
TextView
Based on Gerardo's answer here I created this extension on Int
fun Int.toSuperScript(): String { return when (this) { 0 -> "\u2070" 1 -> "\u00B9" 2 -> "\u00B2" 3 -> "\u00B3" 4 -> "\u2074" 5 -> "\u2075" 6 -> "\u2076" 7 -> "\u2077" 8 -> "\u2078" 9 -> "\u2079" else -> "" }
}