|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-26 10:28 UTC] pajoye@php.net
[2008-09-03 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
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