Please enable JavaScript to view this site.

A-Shell Reference

Navigation: GDI Printing > Introduction to GDI Printing

Printing Special Symbols

Scroll Prev Top Next More

You may insert nearly any special symbol into printed text by embedding the corresponding Unicode Symbol Entity Reference into the text (whether plain text or text passed as an argument to TEXTOUT). These Symbol Entity References must have one of the following syntaxes:

&#ddd; decimal version, ddd are decimal digits

&#xhhhh; hex version, hhhh are hex digits

In either case, the numeric value is taken as a reference to the corresponding UNICODE "code point". Note that the trailing semi-colon is required.

Example

The formula for the circumference of a circle is 2πr

(π is converted at print time to the symbol for pi)

See Also