note 31167 added to function.imagettftext
| From: | Kronn at centrum dot cz | Date: | Fri, 11 Apr 2003 19:18:24 +0000 |
| Subject: | note 31167 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46518@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.
--
http://www.php.net/manual/en/function.imagettftext.php
http://master.php.net/manage/user-notes.php?action=edit+31167
http://master.php.net/manage/user-notes.php?action=delete+31167
http://master.php.net/manage/user-notes.php?action=reject+31167