GD: bundled (2.0.28 compatible)
FreeType: 2.1.9
I'm having a problem getting imagettftext() to load fonts correctly. I always get the error:
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/verify.php on line 50
I've tried both of these varieties, to no avail.
Code: Select all
$imgFontFile = "./comic.ttf";
imagettftext($img, 16, -10, $strX, $strY, $imgFontColor, $imgfontFile, $code);Code: Select all
$imgFontFile = "./comic.ttf";
$imgFontFile = realpath($imgFontFile);
imagettftext($img, 16, -10, $strX, $strY, $imgFontColor, $imgfontFile, $code);Is this some kind of bug? I know the ttf file is in the right location and is readable.
Thanks