My first foray into this function, and 'taint working - I just get a missing image box.
Code looks like this:
$height = 200;
$width = 200;
$im = ImageCreate($width, $height);
$white = ImageColorAllocate($im, 255, 255, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
ImageFill($im, 0, 0, $black);
ImageLine($im, 0, 0, $width, $height, $white);
ImageTTFText ($im, 10, 0, 20, 150, $white, "FFJUSTLE.TTF", "Sampletext");
Header("Content-type: image/jpeg");
ImageJPEG($im);
ImageDestroy($im);
If I drop the ImageTTFText() line it works fine. The FFJUSTLE.TTF font is in the same directory as the script, but perhaps I need to be more explicit in specifying its path. Would that be it?