#31311 [Com]: getting all rectangles instead of text in some true type fonts
| From: | dbad732001 at yahoo dot com | Date: | Tue, 11 Jan 2005 15:40:47 +0000 |
| Subject: | #31311 [Com]: getting all rectangles instead of text in some true type fonts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71862@lists.php.net to get a copy of this message | ||
ID: 31311
Comment by: dbad732001 at yahoo dot com
Reported By: informatica at diputacionavila dot es
Status: Assigned
Bug Type: GD related
Operating System: Fedora core 2
PHP Version: 5.0.3
Assigned To: pajoye
New Comment:
This seems to be the same problem that I've signaled with the bug
31259, but I've the problem with the version 4.3.10 of PHP and the
script it worked correctly with the version 4.3.9.
Previous Comments:
------------------------------------------------------------------------
[2004-12-27 13:42:12] informatica at diputacionavila dot es
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 this bug report at http://bugs.php.net/?id=31311&edit=1