user1063503
user1063503

Reputation: 161

Why Unicode subscript symbol is not properly displayed in C# Label?

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!

Upvotes: 0

Views: 2540

Answers (3)

sm2mafaz
sm2mafaz

Reputation: 402

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.

Upvotes: 0

Nikodemus RIP
Nikodemus RIP

Reputation: 1379

I also think it's a font problem.

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

Upvotes: 0

ChrisBD
ChrisBD

Reputation: 9209

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.

Upvotes: 2

Related Questions