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 the subscript effect, set the Style.font object’s is_subscript property to true.

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

Python code to apply superscript effect to text

Python code to apply subscript effect to text