567 views
in GUI Development by
Hi,

is there a possibility to subscript or superscript a letter like in the phrase O2 (O_2)?

1 Answer

+1 vote
by

Hello,

just use the character codes for the corresponding glyphs. Please see the Wikipedia articel describing the Unicode code points (characters) to be used for such purpose. For example to have O2 with superscripted 2 enter in Embedded Wizard the string literal "O\x00B2"

Don't forget to specify the additional character codes (e.g. 0x00B2) in the attribute Ranges of the font resource used to display the text. And of course this works only with fonts containing such subscript/superscript glyphs.

I hope it helps you further.

Best regards

Paul Banach

by
Exactly what I was looking for!

Thank you for your quick response!

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...