Bug #51383 [Opn->Fbk]: gd rendering freetype incorrectly

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at http://bugs.php.net/bug.php?id=51383&edit=1

 ID:               51383
 Updated by:       [email protected]
 Reported by:      james dot jones at firstinvestors dot com
 Summary:          gd rendering freetype incorrectly
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          GD related
 Operating System: Redhat ES 5.3
 PHP Version:      5.3.2

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2010-03-24 21:35:30] james dot jones at firstinvestors dot com

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.


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



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51383&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.