ID:               33489
 User updated by:  informatica at diputacionavila dot es
 Reported By:      informatica at diputacionavila dot es
-Status:           Feedback
+Status:           Open
 Bug Type:         GD related
 Operating System: Linux Fedora Core 2
 PHP Version:      5.1.0b2
 Assigned To:      pajoye
 New Comment:

Here you have links to some problematic fonts
http://www.diputacionavila.es/weather.ttf
http://www.diputacionavila.es/vacation.ttf
http://www.diputacionavila.es/wingdng3.ttf
http://www.diputacionavila.es/zaf.ttf
If you need anything else...


Previous Comments:
------------------------------------------------------------------------

[2005-07-23 18:47:18] [EMAIL PROTECTED]

Please provide a link to the ttf fonts causing problems. I may try to
allow broken fonts. But only if the changes will not break well defined
fonts.

--Pierre

------------------------------------------------------------------------

[2005-06-28 09:08:25] [EMAIL PROTECTED]

Pierre, you broke this? :)


------------------------------------------------------------------------

[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

Reply via email to