|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-24 22:07 UTC] pajoye@php.net
-Status: Open
+Status: Feedback
[2010-03-24 22:07 UTC] pajoye@php.net
[2010-03-24 22:44 UTC] james dot jones at firstinvestors dot com
[2010-03-24 22:46 UTC] pajoye@php.net
-Status: Feedback
+Status: Duplicate
[2010-03-24 22:46 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Description: ------------ In the test script below, 'a' indicates an input variable that governs the angle at which the text should be rendered. The test script below renders fine for a=0. But as you increase a, the letters in the text become progressively out of alignment until by a=60 the baseline is completely distorted. By a=160, letters actually overlap. This problem does not occur on PHP 5.2.6 (in our production environment). Test script: --------------- $image = imagecreatetruecolor(500, 500); $bgcolor = imagecolorallocate($image, 255, 255, 255); imagefill($image, 0, 0, $bgcolor); $edgecolor = imagecolorallocate($image, 63, 63, 63); imagefttext($image, 30, $_GET['a'], 250, 250, $edgecolor, './arial.ttf', 'Services'); header ('Content-type: image/gif'); imagegif($image); Expected result: ---------------- Expect text to render correctly at all angles. Actual result: -------------- Text becomes distorted as angle changes from 0.