I wasn't getting an error whenever I called the
imagettftext function. Instead, the text I wanted superimposed on the picture just wouldn't appear until I copied a font file from c:/windows/fonts to the directory with
modifyimage.php like Karlos199.
If you take a look at the manual page on the
imagettftext function, it tells you how to change where PHP/GD will look for fonts.