ID: 37279 Updated by: [EMAIL PROTECTED] Reported By: danb at zu dot com -Status: Assigned +Status: Feedback Bug Type: GD related Operating System: Fedora FC4, Linux 2.6.15 PHP Version: 4.4.2 Assigned To: pajoye New Comment:
You configure php using "--with-gd", that means you use the bundled library. If something else is shown, you have mixed your system headers while building. Please verify your setup. Also we need a short script with only the GD functions and a link to the TTF font you use, no function, html, etc.. Previous Comments: ------------------------------------------------------------------------ [2006-05-02 18:18:37] danb at zu dot com Description: ------------ I'm not too sure if this is a php bug or a libgd bug as I upgraded both at the same time. This image on the site was generated under PHP-4.3.11, GD-1.8.4, and FreeType 2.0.3-7. The file is a cached copy. http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919 The font rendered to be more like Times New Roman (sans-serif) than Frutiger 55 Roman however. The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If you change the text being rendered, it consistently cuts off the last 2-3 pixels of text, although it now renders the font more correctly than before. The server was compiled with the following config under Apache 1.3.33: ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning --with-mysql --with-zlib --with-sablot --with-xml --with-mcrypt --with-gd --with-mcal --enable-track-vars --enable-xslt -- with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx --with-pspell --enable-gd-native-ttf -- with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf --with-freetype-dir=/usr --with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell --with-mime-magic --without-pear --with-cur l --enable-mbstring Reproduce code: --------------- The code being used to generate the code is located here: http://www.alistapart.com/d/dynatext/heading.php.txt No code below the $cache_folder definition has been modified. For some reason our code file is called header.php rather than heading.php. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37279&edit=1