note 108955 added to function.imagettfbbox
| From: | magnum dot tc dot mr at gmail dot com | Date: | Thu, 07 Jun 2012 22:50:56 +0000 |
| Subject: | note 108955 added to function.imagettfbbox | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188452@lists.php.net to get a copy of this message | ||
Please note that the 3rd argument is really a "path".
imagettfbbox(10, 0, 'arial.ttf', 'Hello, World!'); // will result in
"Warning: imagettfbbox(): Could not find/open font in ...php on line ..."
use instead something like this:
imagettfbbox(10, 0, './arial.ttf', 'Hello, World!');
or
imagettfbbox(10, 0, getcwd().'/arial.ttf', 'Hello, World!');
----
Server IP: 158.255.214.58
Probable Submitter: 178.26.49.172
----
Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php
Edit -- https://master.php.net/note/edit/108955
Del: integrated -- https://master.php.net/note/delete/108955/integrated
Del: useless -- https://master.php.net/note/delete/108955/useless
Del: bad code -- https://master.php.net/note/delete/108955/bad+code
Del: spam -- https://master.php.net/note/delete/108955/spam
Del: non-english -- https://master.php.net/note/delete/108955/non-english
Del: in docs -- https://master.php.net/note/delete/108955/in+docs
Del: other reasons-- https://master.php.net/note/delete/108955
Reject -- https://master.php.net/note/reject/108955
Search -- https://master.php.net/manage/user-notes.php