|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15212 Freetype Linkage in 4.1.1 / absolute paths in TTF-functions
Submitted: 2002-01-24 16:32 UTC Modified: 2002-06-28 05:22 UTC
Avg. Score:4.8 ± 0.5
Reproduced:25 of 25 (100.0%)
Same Version:17 (68.0%)
Same OS:9 (36.0%)
From: php at phpee dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.1 OS: Debian Woody
Private report: No CVE-ID:
 [2002-01-24 16:32 UTC] php at phpee dot com
TTF-functions, e.g. ImageTTFBBox(), are not working properly in 4.1.1 (GD1, Freetype 2.0.5) anymore as they did in 4.0.5
I've encountered the same problem already with 4.1.0RC2, GD2 (2.0.1), Freetype 2.0.5. 

Those functions require an absolute path instead of a relative one. (what's the point of this?)

Now, when I'm using an absolute path everything works, as long as there is no space in the filename. 
If I'm trying to do this it won't find the ttf-file: 

$ttf_file = '/home/foo/Avalon Quest.ttf'; 

I'm getting the following error: 

/home/foo/Avalon Quest.ttf 
Warning: Could not find/open font in ... 

I tried it also with '/home/foo/Avalon\ Quest.ttf' and '"/home/foo/Avalon Quest.ttf"' 

I've noticed the difference between 4.0.5 and 4.1.1 in the Freetype linkage (the old one was "with TTF library", the new one "with freetype") - Don't know if that's a configuration problem or a bug... ?

configure options:
 '../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=system' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--disable-debug' '--enable-memory-limit' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2' '--with-iconv' '--with-ndbm' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--with-xml=/usr' '--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql' '--disable-static' '--with-layout=GNU' '--with-curl=shared,/usr' '--with-dom=shared,/usr' '--with-zlib-dir=/usr' '--with-gd=shared,/usr' '--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-ldap=shared,/usr' '--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--with-mm' '--with-mysql=shared,/usr' '--with-recode=shared,/usr' '--enable-xslt' '--with-xslt-sablot=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr'



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 05:22 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

 [2004-01-27 05:23 UTC] phil at jamit dot de
I get the same problem with PHP/4.3.3 on w32 (Windows XP). It's not possible to load a font-file using a path with a SPACE in it.

 [2004-02-13 08:40 UTC] honda-mv at web dot de
i did not receive the  pphlogger.js-file kann you please send it to me? thank you very much
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Thu Aug 17 11:01:43 2017 UTC