Superscript and subscript in texts

Superscript and subscript in texts

It is possible to include superscript and subscript texts in InterformNG2.

Superscript is text set slightly above the normal line and in a smaller size. Common uses are exponents (x², 10³), ordinal indicators (1st, 2nd), footnote markers¹ and symbols like ™.

Subscript is text set slightly below the normal line, also smaller. It is mostly used in chemical formulas (H₂O, CO₂) and in maths or science for indices (x₁, x₂).

One low-tech way to do that is to insert a text in a smaller font which is positioned lower or higher than the normal text, but that is not an option if the position of the superscript/subscript is dynamic.

So the better solution is to insert a specific character, which in itself is either superscript or subscript. This is however depending on the font in use as the font has to include the required, special characters.

For superscript these characters can e.g. be used:  ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ˣ ™ ® © ℠

For subscript these characters can e.g. be used:  ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎ₓ

The fast way to insert these characters is to copy them from the list above and insert them in the text element in the designer.

If you need advanced dynamic formatting in the middle of a text e.g. switching color, then you should consider to check out the section, Use dynamic formatting of texts with html commands in the article, Text element.