ID: 45920
Updated by: [EMAIL PROTECTED]
Reported By: h dot purkart at portunity dot de
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Debian 4.0 r4 (Apache/2.2.3)
PHP Version: 5.2.6
-Assigned To:
+Assigned To: pajoye
New Comment:
It is not related to the floating point size but to the freetype
version you are using, how it is built etc.
Also, we do not support debian's php and I do not support Debian's gd
as the maintainer of this package made insane choices (BC breaks) and
did not fix security issues.
I would suggest to try with a source install and freetype 2.3.x (or
with the same version you use on your dev platform) and paste the link
to the result here. I also need the details of your config (php and
freetype version used).
Previous Comments:
------------------------------------------------------------------------
[2008-08-26 10:14:30] h dot purkart at portunity dot de
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 this bug report at http://bugs.php.net/?id=45920&edit=1