note 47699 added to function.imagettftext
| From: | fabax1 at gmx dot de | Date: | Thu, 25 Nov 2004 15:44:12 +0000 |
| Subject: | note 47699 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81026@lists.php.net to get a copy of this message | ||
On Windows-Platforms the simple absolute path to the font file is not enough.
Try this one:
"Create a folder called "font" where your script is, and put your font there.
$fontpath = realpath('./font/');
putenv('GDFONTPATH='.$fontpath);
$font = "arial";
"
Thanks to carramba(at)bootre(dot)com for that hint.
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47699
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47699&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47699&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47699&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47699&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47699&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47699&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47699&report=yes
Search -- http://master.php.net/manage/user-notes.php