note 54972 added to function.imagettftext
| From: | BuddyHacker at osu1 dot php dot net | Date: | Thu, 21 Jul 2005 09:55:56 +0000 |
| Subject: | note 54972 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92240@lists.php.net to get a copy of this message | ||
A correction to Paul Reinheimer's note above regarding this PHP error:
Fatal error: Call to undefined function imagettftext().
Paul states that you need XPM libraries to resolve this issue. This is not true. There is an error
message that originates from "configure" which mistakenly shows itself when other
components are missing. For instance, if you tell "configure" to add JPEG support, and it
can't find the libraries, it will tell you it can't find the JPEG libraries AND it will
recommend adding --with-xpm to solve the problem. This recommendation is ill-placed and misleading.
I received the same error message above, along with the recommendation to add XPM supprt. However I
resolved it by adding the --with-freetype-dir AND --enable-gd-native-ttf options to the
"configure" command line. I did _not_ need XPM.
There are other variations to this error message, such as the script recommending adding JPEG
support or PNG support to resolve it's own inability to locate other libraries. The script
needs some cleanup in order to fix these poorly placed recommendations.
FYI, imagettftext() is a call to one of the truetype fonts functions. It is NOT related in any way
to the XPM libraries, so it is not required unless you explicitly want XPM functionality.
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54972
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54972&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54972&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54972&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54972&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54972&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54972&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54972&report=yes
Search -- http://master.php.net/manage/user-notes.php