Apply Superscript and Subscript Effects on Fonts

Working with Superscript and Subscript

Apply the superscript effect by setting the Style.font object’s is_superscript property to true. To apply subscript, set the Style.font object’s is_subscript property to true.

The following code examples show how to apply super and subscript to text.

Python code to Apply Superscript effect on text

Python code to Apply Subscript effect on text