Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

Like imagedashedline, imageline draws a line from the starting point to the ending
point. In this case, the line is solid.


Figure 12-6. imageline.

integer imageloadfont(string filename)


The imageloadfont function loads a font and returns a font identifier that may be used
with the other font functions. The fonts are stored as bitmaps in a special format. The
PHP 3 distribution contained a Perl script for converting X11 .bdf files to PHP's format.


The code that loads fonts is architecture dependent. Table 12.2 shows the structure of a
font file for systems that use 32-bit integers. Use this if you wish to create your own font
files.


Table 12.2. PHP Font File Format
Free download pdf