Edit report at http://bugs.php.net/bug.php?id=51263&edit=1
ID: 51263
Updated by: [email protected]
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] [email protected]
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
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.