ID: 33489
Updated by: [EMAIL PROTECTED]
Reported By: informatica at diputacionavila dot es
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Linux Fedora Core 2
PHP Version: 5.1.0b2
-Assigned To:
+Assigned To: pajoye
New Comment:
Pierre, you broke this? :)
Previous Comments:
------------------------------------------------------------------------
[2005-06-28 08:26:30] informatica at diputacionavila dot es
Freetype libs are the same in both systems. I have also tryed other
versions of freetype. I'm talking about php 5.0.3 and beyond, so I've
tested it in 5.0.3, 5.0.4 and 5.1.0b2 whith the same result. If I get
back to 5.0.2 it works fine.
------------------------------------------------------------------------
[2005-06-27 14:29:25] [EMAIL PROTECTED]
..and the underlying freetype libs, etc. are the same in both systems?
And you're reporting this bug to be in 5.1b2, even as you only talk
about 5.0.2 / 3..so REALLY try the b2 before reporting something..
------------------------------------------------------------------------
[2005-06-27 13:47:21] informatica at diputacionavila dot es
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33489&edit=1