Is it possible to show base-power couples in a juce::String?


Hi everyone,


I want to show n^2 as it was an equation. as this: n2  or n2


Is that possible in juce::String class?


well yes and no... A string is a string of characters, it obviously doesn't contain any font size or formatting information. But assuming that there's a unicode character for a superscript 2, you could add that to the string, and if the font you're using contains that code-point, it'd be displayed.