Bug #51263 [Opn->Csd]: imagettftext and rotated text uses wrong baseline (regression)
| From: | tabe@php.net | Date: | Thu, 25 Mar 2010 10:14:46 +0000 |
| Subject: | Bug #51263 [Opn->Csd]: imagettftext and rotated text uses wrong baseline (regression) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148990@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51263&edit=1
ID: 51263
Updated by: tabe@php.net
Reported by: cschneid at cschneid dot com
Summary: imagettftext and rotated text uses wrong baseline
(regression)
-Status: Open
+Status: Closed
Type: Bug
Package: GD related
PHP Version: 5.3.2
-Assigned To:
+Assigned To: tabe
New Comment:
Hi cschneid,
Thanks for your patch. Applied.
Previous Comments:
------------------------------------------------------------------------
[2010-03-24 05:12:21] tabe@php.net
Automatic comment from SVN on behalf of tabe
Revision: http://svn.php.net/viewvc/?view=revision&revision=296693
Log: Fixed bug #51263 (imagettftext and rotated text uses wrong
baseline)
------------------------------------------------------------------------
[2010-03-10 15:56:25] cschneid at cschneid dot com
Description:
------------
imagettftext and rotated text by e.g. 90 degrees aligns text on top of
characters instead of baseline.
The regression was introduced with commit
r293268 | tabe | 2010-01-08 13:18:52 | Bug #49600 (imageTTFText
text shifted right) - fix difference of horizontal position between
imagettftext() and imagettfbbox()
Test script:
---------------
<?php
$img = imagecreatetruecolor(23, 100);
$col = imagecolorallocate($img, 255, 255, 255);
imagettftext($img, 8, 90, 10, 90, $col, "verdana.ttf", "foo bar qux");
imagepng($img, "img.png");
Expected result:
----------------
Normal text rotated by 90 degrees
Actual result:
--------------
Text rotated but aligned at top of characters instead of bottom
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51263&edit=1