Fonts


Welcome     Gallery     Handbook


Manual page for Fonts(PL)

What fonts are available?

This depends on what output format you are producing, since Ploticus does not include its own internal fonts.


PNG, GIF, etc.

If the default built-in GD code is used, a basic ascii font is available in 5 sizes (you can specify any point size in ploticus; the nearest available size will be used). You can't set the font from ploticus; -font (etc.) will have no effect. Vertical rendering is available. Availability of symbols and nonroman characters is limited to those in ASCII 128-255.


PNG, JPEG, WBMP with FreeType2 support

If your ploticus build uses GD with FreeType2 support, you can use TrueType fonts. The basic GD ascii font is also available in 5 sizes, and is the default (its name is ascii should you need to use it explicitly). You can set the font from ploticus using -font, proc page font attribute, or font in any textdetails attribute. TrueType font names should be given without the .ttf extension, e.g. if you have a font file called times.ttf you would use

-font times

You will need to have some TrueType .ttf font files stored in a directory somewhere. The environment variable GDFONTPATH must be set to contain the pathname of this directory. TrueType font files may be found on NT machines in c:/winnt/fonts or they may be downloaded on the web.

Vertical rendering is available. Availability of symbols and nonroman characters: UTF-8 sequences such as &#192 may be used.

Here is an example rendered using TTF sans serif font. For more information on building ploticus to use FreeType2, see ./src/FreeType2 and ./src/Makefile.


PostScript, EPS

Uses PostScript fonts. The default font is /Helvetica. You can set the font from ploticus using -font, proc page font attribute, or font in any textdetails attribute, for example:

-font /Helvetica-Oblique

Usually these fonts are available: /Helvetica /Helvica-Oblique /Helvetica-Bold /Helvetica-BoldOblique /Times-Roman /Times-Bold; many others are usually available as well. Vertical rendering is available. Availability of symbols and nonroman characters: you can use the troff-like special characters feature that uses the /Symbols font; otherwise it depends on what is available in the upper range of the PostScript font you are using.


X11

Always uses the same fixed width font. You can't set the font from ploticus; -font (etc.) will have no effect. Depending on availablility, this will be either -adobe-courier-bold-r-normal, -misc-fixed-medium-r-normal, or as a last resort, 9x15. Proper vertical rendering is not available. Availability of symbols and nonroman characters is limited to those in ASCII 128-255.


data display engine  
Copyright Steve Grubb


Markup created by unroff 1.0,    September 17, 2001.