Set superscript and subscript in formatted text in wpf

formatted-text, subscript, superscript, wpf, wpf-controls

Solution

You use Typography.Variants:

<TextBlock>
    <Run>Normal Text</Run>
    <Run Typography.Variants="Superscript">Superscript Text</Run>
    <Run Typography.Variants="Subscript">Subscript Text</Run>
</TextBlock>

Problem

How can I set some text as subscript/superscript in `FormattedText` in WPF?

Original source

Related problems