note 40862 added to function.imagettftext
| From: | RobertatTriangle-servicesdotNL at rn2 dot php dot net | Date: | Wed, 17 Mar 2004 12:41:18 +0000 |
| Subject: | note 40862 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66956@lists.php.net to get a copy of this message | ||
Ok, for all you windows users that STILL get the Could not find/open font error... i think i've
found the solution.
The php-for-windows package has the directory /windows/fonts hardcoded for all Win32 distributions.
It doesn't look anywhere else (e.g. the php folder, the documentroot or the script location).
However, if you use Windows XP, the windows-home directory is not WINNT as in Win2k, but Windows
(back to the old days).
The next solution is not elegant, but it works (and is the only solution i have found that works for
winXP).
Create a directory Winnt\fonts in the root of the same partition as your main operating system, and
put the fonts you want to use in the newly created fonts-directory...
enjoy!
(thnx to Pioneer for helping me out on this one)
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40862
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40862&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40862&report=yes
Search -- http://master.php.net/manage/user-notes.php