8

Is it possible to Build a string or fix the label in the GUI so that I get square meter information to the user. So that the output will look like 21 m2 but the 2 is raised.

Regards

Hosam Aly
  • 41,555
  • 36
  • 141
  • 182
humcfc
  • 339
  • 2
  • 4
  • 11
  • I don't know about .NET, but Java Swing controls can accept HTML to be rendered. If .NET supports that, you could write "21 m2". – Hosam Aly Mar 09 '09 at 10:43

3 Answers3

6

Use the "²" caracter : 21 m²

The unicode code point is U+00B2 and the UTF-8 hexadecimal is c2 b2

Sébastien Nussbaumer
  • 6,202
  • 5
  • 40
  • 58
1

Use a font that has the ² character.

Eg MS Sans Serif : 0xB2

Martin
  • 39,569
  • 20
  • 99
  • 130
1

In the label, use the HTML character reference "²" for the superscript in m².

Raithlin
  • 1,764
  • 10
  • 19