note 31168 rejected from function.imagettfbbox by alindeman

From: Date: Fri, 11 Apr 2003 19:24:35 +0000
Subject: note 31168 rejected from function.imagettfbbox by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-46520@lists.php.net to get a copy of this message
Hello, i've got script: <? Header("Content-type: image/png"); $img = ImageCreate(200,200); $bgcolor = ImageColorAllocate($img,"255","255","255"); ImageColorTransparent($img,$bgcolor); $textcolor = ImageColorAllocate($img,"0","0","0"); ImageTTFText($img,10,0,5,60,$textcolor,"arial.ttf","TEXT"); ImagePng($img); ?> but it returns error: Warning: Could not find/open font.... I've tried absolute and relative patches, but i too doesn't work. And i've too tried the adress without .ttf, and nothing has changed. SuSE 8.1 PHP 4.2.2 GD Version 1.6.2 or higher GD Support enabled FreeType Support enabled FreeType Linkage with freetype Help me asap! Thx.

« previous php.notes (#46520) next »