superscript in Java String

后端 未结 7 1723
一向
一向 2020-12-09 18:45

Does Java String supports superscript in a String? If yes then how can I use it, I have searched the web and also the API but not able to figure out how I can use it for my

7条回答
  •  无人及你
    2020-12-09 19:27

    No, a string is just a sequence of UTF-16 code-units. There are unicode codepoints for individual super-script characters in the math code-pages but none that mark a region of a string as super-scripted the way there are for bidi regions.

    If you're trying to display mathematical text with super-scripts using a Graphics context, you should search for Latek or MathML libraries written in Java.

提交回复
热议问题