|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jason at buberel dot org
New email:
PHP Version: OS:


 [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:


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:


Add a Patch

Pull Requests

Add a Pull Request


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

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 09:05:54 2022 UTC