note 36385 added to function.imagettftext
| From: | Adam at rn2 dot php dot net | Date: | Wed, 08 Oct 2003 09:45:50 +0000 |
| Subject: | note 36385 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58033@lists.php.net to get a copy of this message | ||
HI!
If you get this error message:
"Warning: Could not find/open font in c:\..."
Try these solutions:
1. put the .ttf file in the same dir as your .php file
2. do NOT add .ttf (GD2 adds .ttf) in imageTTFtext(..)
example:
font is called arial.ttf
font is in same directory as showText.php
showtext.php includes this line:
imagettftext($image, 12, 0, 6, 20, $black, "arial", "Hello world");
that SHOULD work for you
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36385
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36385&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36385&report=yes
Search -- http://master.php.net/manage/user-notes.php