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