1

I am putting into the TextBlock some text with trademark (TM): "Some text™"

But text block shows (TM) sign at start - "™Some text"!

How can I show (TM) sign in the place where I put it in the string?

P/S: It looks unbelievable but it's true)

kyrylomyr
  • 12,192
  • 8
  • 52
  • 79
Alexander Molodih
  • 1,928
  • 2
  • 20
  • 30

2 Answers2

1

Why not use

<TextBlock Text="Some Text"/><TextBlock Text="™"/>
Digvijay
  • 361
  • 1
  • 9
  • That's an ugly workaround. It's certainly better to fix the original problem, if that's possible. – CodesInChaos Feb 14 '12 at 09:49
  • It seems from another thread on Stackoverflow: The size of the ® symbol varies with the font being used. Some fonts draw it as a superscript others draw it as a standard character. For example the "Lucida Sans Unicode" font treats it like a Superscript where as the "Lucida Grande" font draws it like a normal character. Hence you need to be careful which font you use to render it. http://stackoverflow.com/questions/1813645/displaying-symbol-in-silverlight – Digvijay Feb 14 '12 at 09:49
  • Generally I am getting this string from server, and this symbol can be everywhere. I've simplified my issue for this question – Alexander Molodih Feb 14 '12 at 09:51
  • then try using a different font. maybe that would help! – Digvijay Feb 14 '12 at 09:57
1

Silverlight 5 :

Following will work with Silverlight 5 with Typography Support..

<TextBlock>
    <Run Text="Some Text..!!"
     Typography.Variants="Normal" />
    <Run Text="TM"
         Typography.Variants="Superscript" />     
 </TextBlock>

Go to following link for more on Open Type Support in Silverlight 5.. http://10rem.net/blog/2011/09/02/silverlight-5-and-wpf-4-opentype-support

Silverlight 4 :

No direct support for typography in Silverlight 4 but it can be achieved for few numbers and basic arithmetic. For which you can check following link on Silverlight Forums..

http://forums.silverlight.net/t/64169.aspx/1

Thanks..