|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-27 14:29 UTC] sniper@php.net
[2005-06-28 08:26 UTC] informatica at diputacionavila dot es
[2005-06-28 09:08 UTC] sniper@php.net
[2005-07-23 18:47 UTC] pajoye@php.net
[2005-07-26 09:18 UTC] informatica at diputacionavila dot es
[2005-07-27 16:58 UTC] pajoye@php.net
[2005-07-28 13:47 UTC] informatica at diputacionavila dot es
[2005-07-28 14:41 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 22:00:01 2025 UTC |
Description: ------------ Certain true type fonts shows squares instead of text. Common fonts works fine (Times, Arial...) and some symbol fonts too. But weather.tff don't. You can download the font from www.diputacionavila.es/weather.ttf 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); $black = imagecolorallocate($gif, 0,0,0); ImageTtfText ($gif, 20, 0, 0, 90, $black, "/weather.ttf","123ABCabc..."); ImagePNG($gif); ?> Expected result: ---------------- This is what I see in php5.0.2 http://www.diputacionavila.es/xgarbage/gif3.php Actual result: -------------- This is what I see in php5.0.3 and beyond http://rh.homelinux.net/xgarbage/gif3.php