Re: exponents



Maximo Pech wrote:
How can i put a char with an exponent like x^2 in a label?
For example a x with a small 2 in the upper right corner or x raised to square.

Use the "Superscipt Two" unicode character like this:

    "2\302\262"

This isn't useful for superscripts other than 2 or 3 ("\302\263") because (at least with the font I'm looking at) there aren't any other superscript numbers in Unicode. If you want something other than squared and cubed, use the pango markup solution already posted.

--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]