Enhance the capabilities of GD to deal with different fonts by specifying the --with-XXXX configure switch to your PHP configure line.
In order to read and write images in jpeg format, you will need to obtain and install jpeg-6b (available at ftp: / /ftp.uu.net / graphics / jpeg /), and then recompile GD to make use of jpeg-6b.