Search Locate Previous Next Contents

Fonts – defining and using short codes

In general, charts can be designed very effectively using only variants of the standard fonts Times New Roman and Arial, so rather than asking you to enter these every time you need to set a font, RainPro uses a set of short codes like:

This approach also means that you can safely use EPS output (Encapsulated PostScript) to save your charts in a very high-quality format suitable for publishing tools like Quark Express, and also that your charts will be very reliably displayed on the internet when you render them in VML or SVG format.

To get the italic variant of any font, add ‘I’ to the end of the code, and similarly ‘B’ selects the bold style, so:

Fonts which only have a single variant (such as Symbol) can have a 4-letter short-code.

The default set of font codes which RainPro provides are:

TITimes-Roman
TIITimes-Italic
TIBTimes-Bold
TIBITimes-BoldItalic
ARArial
ARIArial-Oblique
ARBArial-Bold
ARBIArial-BoldOblique
COCourier
COICourier-Oblique
COBCourier-Bold
COBICourier-BoldOblique
SYMBSymbol
WINGWingdings

Modifying the font table
If you need a font for a particular chart, you can add a code for it directly into the chart specification by including a Define font entry with the short code and TrueType name. You can now refer to the code as above. If you intend to export your charts in either of the PostScript formats (EPS or Distiller input for PDF generation) you should include the PostScript font name also. If you omit this, all extra fonts will appear as Times-Roman in the EPS file.

See also ...
chDefineFont – define new TrueType fonts


Continue to: Tick Mark Styles
© Copyright Causeway Graphical Systems Ltd 2003