Edit report at http://bugs.php.net/bug.php?id=51383&edit=1
ID: 51383 Comment by: james dot jones at firstinvestors dot com Reported by: james dot jones at firstinvestors dot com Summary: gd rendering freetype incorrectly Status: Feedback Type: Bug Package: GD related Operating System: Redhat ES 5.3 PHP Version: 5.3.2 New Comment: The problem appears to be resolved in the latest snapshot. Thanks! Previous Comments: ------------------------------------------------------------------------ [2010-03-24 22:07:17] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [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