php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13983 PHP complains that it was not build with truetype font support
Submitted: 2001-11-07 14:49 UTC Modified: 2001-11-10 13:33 UTC
From: jason at buberel dot org Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: Linux (RedHat 7.2)
Private report: No CVE-ID: None
 [2001-11-07 14:49 UTC] jason at buberel dot org
With version 4.0.6 of php, I am now unable to use TrueType fonts when trying to generate images through GD.

I am using:

php-4.0.6
gd-1.8.4
freetype-2.0.3
redhat-7.2/intel

Each time I try to render an image containing truetype fonts, I get the error message:

Warning: ImageTtfBBox: No TTF support in this PHP build in /usr/local/web/buberel-ssl/htdocs/weather-devel/jpgraph.php on line 2330

However, my build of PHP (the version that shipped with redhat 7.2) was built with ttf support:

> php -info
...
'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--enable-force-cgi-redirect' '--with-bz2' '--with-curl' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml'
...

You can see the problem at:

http://www.buberel.org/weather-devel/combo.php?l=0&r=lm&sm=10&sd=8&sy=2001&em=11&ed=7&ey=2001&gb=d&tc=h&hc=n&dc=n&pc=n&wc=n&ec=n&cc=n


-jason@buberel.org

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-10 12:11 UTC] sander@php.net
You should use --enable-gd-native-ttf in your configure-line.
 [2001-11-10 13:33 UTC] derick@php.net
As far as I recall, it's --enable-gd-native-tt (due to a typo. I might not be correct here).


Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC