|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-11 16:40 UTC] dbad732001 at yahoo dot com
[2005-01-14 19:10 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 07:00:01 2025 UTC |
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