991 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...