[thelist] imageTTFText()

kris burford kris at midtempo.net
Thu Oct 3 09:09:17 CDT 2002


has anyone managed to get ImageTTFText() working? if so, could you give me
some advice? i keep getting "Warning: Could not find/open font" using both
absolute and relative paths and both remote and local locations, all with
no joy. i've read the notes at php.net, but still don't seem to be able to
get this working...

tia (code follows)


$im = ImageCreate(140, 50);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255, 255, 255);
ImageTTFText($im, 24, 0, 30, 35, $white, "AVA.TTF", "hello");
ImagePNG($im, 'testscript.png');

More information about the thelist mailing list