Heya!
I wonder if any of you guys could shed light on a problem I am having with ImageTTFText...
$font = "arialbd.ttf";
$f2text = $fighter_desc[0]." ".$fighter_name[1];
$red = imagecolorallocate($image,255,0,0);
imagettftext($image,10,0,10,20,$red,$font,$f2text);
This should work - however it doesnt! The font file is in the same directory as the .php file, however, i suspect that it is still the problem!
Can anybody see anything wrong with that ?
edit: the error i get is simply "cannot create image "filename" because there were errors. Bog standard GD Error!
edit: The colon is actually on the same line as imagettftext, but this box (the one i have to write this message in) is too small and its difficult to make it move up a line 🙂
Thanks!