0

I have a C# Label and I set the text to the String "CO\u2082" (CO2 with the Unicode subscript) .

The label is displayed properly on my PC which runs Windows XP service pack 3, but not displayed properly on a PC with Windows XP service pack2.

m_labelDescCO2 = new System.Windows.Forms.Label();  
m_labelDescCO2.Text = "CO\u2082";  

The Label font is defined to be Microsoft Sans Serif.

Thanks for any advice!

user1063503
  • 161
  • 1
  • 6

3 Answers3

2

It's possible that the font that you've selected doesn't support Unicode subscript characters on XP service pack 2.

Have a look here for some information regarding Unicode support.

I think that you'll have to check for a different font.

ChrisBD
  • 9,104
  • 3
  • 22
  • 35
0

Hi I found the answer here. Some fonts do not have superscript or subscript support in other operating systems. The "Character Map" program in Windows is a good point to start figuring out.

Community
  • 1
  • 1
sm2mafaz
  • 392
  • 3
  • 15
0

I also think it's a font problem.

It doesn't work with MS Sans and Verdana, it does work with Arial Unicode MS

Justin
  • 84,773
  • 49
  • 224
  • 367
Nikodemus RIP
  • 1,369
  • 13
  • 20