ID: 31311 Comment by: dbad732001 at yahoo dot com Reported By: informatica at diputacionavila dot es Status: Assigned Bug Type: GD related Operating System: Fedora core 2 PHP Version: 5.0.3 Assigned To: pajoye New Comment:
This seems to be the same problem that I've signaled with the bug 31259, but I've the problem with the version 4.3.10 of PHP and the script it worked correctly with the version 4.3.9. Previous Comments: ------------------------------------------------------------------------ [2004-12-27 13:42:12] informatica at diputacionavila dot es Description: ------------ After updating from php-5.0.2 to php-5.0.3 some true type fonts show rectangles instead of text My configure command is: './configure' '--with-apxs=/apache/bin/apxs' '--with-gd' '--with-zlib-dir=/usr/local' '--with-png-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-freetype-dir=/usr/local' '--enable-track-vars' '--enable-calendar' '--enable-exif' '--with-imagick' '--with-unixODBC' '--with-mysql=/usr/local/mysql' Reproduce code: --------------- <?php Header("Content-type: image/png"); $gif = ImageCreate(200,200); $bg = ImageColorAllocate($gif,22,222,2); $ellipse = ImageColorAllocate($gif,2,200,200); $tx = ImageColorAllocate($gif,255,255,128); ImageFilledRectangle($gif,0,0,200,200,$bg); //ImageString($gif,113,70,90,"it works !",$tx); $black = imagecolorallocate($gif, 0,0,0); ImageTtfText ($gif, 20, 0, 0, 90, $black, "/font/weather.ttf","123ABCabc..."); ImagePNG($gif); ?> Expected result: ---------------- Expected result is what you can see at my server with php-5.0.2 http://www.diputacionavila.es/xgarbage/gif3.php Actual result: -------------- Actual result is what you can see at my server with php-5.0.3 http://rh.homelinux.net/xgarbage/gif3.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31311&edit=1