ID:               31133
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hessefort dot marco at knauf dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: Windows 2000
 PHP Version:      5.0.3
 New Comment:

Please supply any font with which this problem can be duplicated.


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

[2004-12-16 19:40:55] hessefort dot marco at knauf dot de

Description:
------------
This code produces a large white banner with "Testtext" on it when
running PHP4 or PHP5 up to 5.0.2 

Exactly the same code with exactly the same machine config produces a
large white banner with nothing on it with 5.0.3.

lt_50196.tff is "Futura Condensed Bold". (copyrighted, unfortunately I
cannot offer it for download)
However, the code is working with "Arial.ttf" as font.

I can reproduce this behaviour on two machines, both running Win2k SP4
with IIS5 and Windows binaries downloaded from php.net in CGI Mode with
the bundled php_gd2.dll. Also running is FreeType 2.1.7

Don't know if it is a PHP "bug", but it's the only thing I changed.

Maybe related to Bug #17924.

Reproduce code:
---------------
<?php
dl('php_gd2.dll');
header ("Content-type: image/png");
$im = imagecreate(5000, 244);
$back = ImageColorAllocate($im, 255, 255, 255);
$fore = ImageColorAllocate($im, 0, 0, 0);

$retarr = ImageFTText ($im, 144, 0, 1, 189, $fore,
$_SERVER["SystemRoot"]."\\Fonts\\lt_50196.ttf", "Testtext", array());

ImagePng($im);
imagedestroy($im);
?> 

Expected result:
----------------
Big fat "Testtext" with Font "Futura Condensed Bold" on a large white
rectangle.

Actual result:
--------------
Big fat nothing on a large white rectangle when running PHP 5.0.3


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


-- 
Edit this bug report at http://bugs.php.net/?id=31133&edit=1

Reply via email to