note 36385 deleted from function.imagettftext by aidan
| From: | aidan@php.net | Date: | Mon, 20 Sep 2004 10:00:28 +0000 |
| Subject: | note 36385 deleted from function.imagettftext by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77025@lists.php.net to get a copy of this message | ||
Note Submitter: Adam
----
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