all groups > c# > january 2005 >
You're in the

c#

group:

Heavy unicode supported monospace font?


Heavy unicode supported monospace font? Jesper
1/12/2005 11:25:05 PM
c#: Hi,

I'm in need for a monospace font to be used in a .net application able to
write subscripts numbers like in CO2 and H2O. Any suggestions on a suitable
font?

I use this syntax,
textbox.Text = String.Format("\u2082\u2083\u2084").ToString();
is this correct?

thanx
Re: Heavy unicode supported monospace font? Hans Kesting
1/13/2005 10:51:09 AM
[quoted text, click to view]

You can use <sub> and <sup> tags in html. I don't know how they
combine with monospace fonts though ..

[quoted text, click to view]

It seems a bit overkill:
- you supply a fixed string to String.Format, so why use String.Format?
- then you convert the string output to string

wouln't this be simpler:
textbox.Text = "\u2082\u2083\u2084";

Hans Kesting

[quoted text, click to view]

AddThis Social Bookmark Button