From:             informatica at diputacionavila dot es
Operating system: Linux Fedora Core 2
PHP version:      5.1.0b2
PHP Bug Type:     GD related
Bug description:  Certain true type fonts shows squares instead of text

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 bug report at http://bugs.php.net/?id=33489&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33489&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33489&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33489&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33489&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33489&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33489&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33489&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33489&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33489&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33489&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33489&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33489&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33489&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33489&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33489&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33489&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33489&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33489&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33489&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33489&r=mysqlcfg

Reply via email to