Question

Unfortunately, I need to directly drawText on a button and I have to put -1 superscript on it.

Problem is that drawText prints small square instead of '\u207b' or ⁻ while it correctly prints '\u00b9' or ¹. I suspect drawText does not recognize certain unicode characters.

In this case, what can I do?

Was it helpful?

Solution

This is a guess, but that character probably isn't supported by the font that you're using. Try looking for a font that supports it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top