note 54972 deleted from function.imagettftext by cmb
| From: | cmb@php.net | Date: | Tue, 13 Sep 2016 17:36:54 +0000 |
| Subject: | note 54972 deleted from function.imagettftext by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206576@lists.php.net to get a copy of this message | ||
Note Submitter: BuddyHacker
----
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.