Go to AVS Home Page
 Recent Releases
OpenViz 2.9 Released
AVS/Express 7.2.2 Released
Toolmaster 7.5.3 Released
AVS 5.7 Released
 Contact Support
 Licensing
Information on licensing AVS 
products
 
Interact with the AVS Developer 
community. Takes you out of 
the support web site

 


Q. How do I get subscripts, superscripts, foreign characters, and so on in my strings in AVS/Express?

A. You can just enter special character codes that are supported by your character set. For example, pull down a string object or UI kit object such as UIlabel and enter the string,

"a\xb2 * b\xb3"

This is a with superscript 2 times b with superscript 3. (This assumes you are in an English locale using ISO8859-1; this is the default 'C' locale for AVS/Express.)

If you want Greek, then try specifying an ISO8859-7 font (you can specify the font by setting the LANG environment variable) and using character codes in the upper half of the byte range. Unfortunately many machines won't have an ISO8859-7 font available unless you have the Greek language option installed. If you do have ISO8859-7 then pi**2 becomes: \xf0\xb2 You can get the character code mappings from your OS documentation, or by using font tools such as xfd on UNIX systems.

For more info see Appendix A, "Worldwide Language and Font Support" of the Using AVS/Express manual.