PHP Warning: imagettftext(): Could not find/open font [Lösung]

10. Oktober 2011

$ttfpath = realpath('.'); //'.' mit Verzeichnis ersetzen, falls ttf nicht im selben liegt.
putenv('GDFONTPATH='.$ttfpath);
$ttf = 'arial.ttf';
//...//
imagettftext($img, $ttfsize, $angle, $t_x, $t_y, $color, $ttf, $text);
//...//

Trackback URI | Kommentare als RSS

Einen Kommentar schreiben