Monday, 15 September 2014

c# - Superscript or subscript in TextBlock -



c# - Superscript or subscript in TextBlock -

<textblock foreground="black" fontsize="50" fontfamily="segoe ui"> <run>normal text</run> <run typography.variants="superscript" text="superscript123"/> <run typography.variants="subscript" text="subscript123"/> </textblock>

below screen shot. seems characters not allowed in super/sub script.

actually want set ® symbol i'm getting is

and want is

p.s. found reply http://stackoverflow.com/a/3435675/468724 there no such property baselinealignment

either utilize segoe wp font

or can this

<stackpanel orientation="horizontal"> <textblock fontfamily="segoe ui" fontsize="16" text"normal text"/> <textblock fontfamily="segoe ui" fontsize="9" text="&#174;"/> </stackpanel>

i used 60% lesser font trademark symbol

c# xaml windows-8 windows-store-apps

No comments:

Post a Comment