#31311 [NEW]: getting all rectangles instead of text in some true type fonts
From: informatica at diputacionavila dot es
Operating system: Fedora core 2
PHP version: 5.0.3
PHP Bug Type: GD related
Bug description: getting all rectangles instead of text in some true type fonts
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
--
Edit bug report at http://bugs.php.net/?id=31311&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31311&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31311&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31311&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31311&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31311&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31311&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31311&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31311&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31311&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31311&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31311&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31311&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31311&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31311&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31311&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31311&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31311&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31311&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31311&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31311&r=mysqlcfg
Thread (4 messages)
- informatica at diputacionavila dot es