I get this error Could not find/open fontwhen trying imagettftext()in PHP.
Could not find/open font
imagettftext()
The font file is. What is the problem?
I found the answer to bytes http://bytes.com/topic/php/answers/4833-gd-could-not-find-open-font-font-problem
Configuring gdfontpath may help
$fontpath = realpath('.'); //replace . with a different directory if needed putenv('GDFONTPATH='.$fontpath); $font = 't.otf'; ... $box = imagettfbbox($size, 0, $font, $text);