Using TrueType Fonts
The font options available to you when creating simple images as you did in the previous example can be limiting: five fixed-size and crude fonts. There are two other font options for creating images: PostScript fonts and TrueType fonts. PostScript fonts were designed for improved printing and are therefore more suited for straight text documents rather than Web images, in my opinion. It is an option for those more accustomed to them, but I'll stick to TrueType fonts in my examples here.
Without going into unnecessary font details, suffice it to say that TrueType fonts are the default fonts on most operating systems because they render higher-quality text (they are anti-aliased, which is to say not jagged) than their predecessors' ...
Get PHP Advanced for the World Wide Web: Visual QuickPro Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.