7

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
  • 40,263
  • 36
  • 139
  • 181
humcfc
  • 329
  • 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

5

Use the "²" caracter : 21 m²

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

Sébastien Nussbaumer
  • 5,912
  • 4
  • 38
  • 55
1

Use a font that has the ² character.

Eg MS Sans Serif : 0xB2

Martin
  • 38,157
  • 20
  • 98
  • 129
1

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

Raithlin
  • 1,764
  • 11
  • 18