Set superscript and subscript in formatted text in wpf

后端 未结 8 704
时光说笑
时光说笑 2020-11-27 06:37

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

8条回答
  •  爱一瞬间的悲伤
    2020-11-27 07:14

    Typography.Variants works only for open type fonts. If you dont like your superscripts/subscripts going outside the height of actual text then you can use something like the following:

    
        1
        H
        2
    
    

提交回复
热议问题