From: h dot purkart at portunity dot de
Operating system: Debian 4.0 r4 (Apache/2.2.3)
PHP version: 5.2.6
PHP Bug Type: GD related
Bug description: imagefttext does not accept floated sizes
Description:
------------
We've got a problem during generating images with the function
imagefttext. It does not accept floated font sizes (as written in your
documentation) any more, in our example "9.2". The generated image with
size "9.2" is the same then generating this image with font-size "9",
"9.3", "9.6", etc.
Our developing-system still runs with PHP 5.1.2. At this system the
function imagefttext works fine as written in your documentation and
accepts floated font sizes (see excepted result).
Reproduce code:
---------------
<?
// ### Generate Image
header("Content-type: image/png");
$imgNew = imagecreatetruecolor(200, 40);
$colorTake = imagecolorallocate($imgNew, 255, 255, 255);
imagefttext($imgNew, 8.9, 0, 5, 19, $colorTake,
"/wwwroot/_cvs_users_smb/hpu/Schatz/images/generated/source/arialbd.ttf",
strtoupper($sTextConform));
imagepng($imgNew);
?>
Expected result:
----------------
Generated image with PHP v5.1.2:
http://www.portunity.net/tmp/imagefttext-image-v5_1_2.png
Actual result:
--------------
Generated image with PHP v5.2.6:
http://www.portunity.net/tmp/imagefttext-image-v5_2_6.png
--
Edit bug report at http://bugs.php.net/?id=45920&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45920&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45920&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45920&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45920&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45920&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45920&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45920&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45920&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45920&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45920&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45920&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45920&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45920&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45920&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45920&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45920&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45920&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45920&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45920&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45920&r=mysqlcfg