note 31167 rejected from function.imagettftext by alindeman
| From: | alindeman@php.net | Date: | Fri, 11 Apr 2003 19:24:43 +0000 |
| Subject: | note 31167 rejected from function.imagettftext by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46521@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 the adress without .ttf, and nothing 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.