4.6. Text Fonts

The functions in this section control the text fonts used by PHPlot. PHPlot supports both built-in GD fonts and TrueType fonts (if available on your system). PHPlot does not support Adobe Type1 fonts, even if your GD supports them. See Section 3.8, “Text Fonts” for more information about font selection.

Tip

TrueType fonts produce generally higher quality text, but using them requires more internal computations. The built-in GD fonts are faster to render, but are limited to one typeface and 5 available sizes. TrueType fonts can be any size and angle, and many typefaces are available. On most systems, TrueType fonts are anti-aliased for improved appearance, but under some conditions the GD fonts may be easier to read.

The following figure shows the built-in GD fonts plus a sample TrueType font. (Depending on how you are viewing this manual, the sizes of the fonts in this figure might differ from how they would look in a PHPlot image. For more on font sizes, see the notes with SetFont.)

A sample of the fonts