php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48732 TTF Bounding box wrong for letters below baseline
Submitted: 2009-06-30 07:31 UTC Modified: 2009-07-27 15:14 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: sta at netimage dot dk Assigned: tabe
Status: Closed Package: GD related
PHP Version: 5.2.10 OS: FreeBSD 7.1
Private report: No CVE-ID:
 [2009-06-30 07:31 UTC] sta at netimage dot dk

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-30 07:42 UTC] sta at netimage dot dk
To images, one rendered with PHP 5.2.9, the other with 5.2.10.
  http://php.thing.dev.netimage.dk/48732_5_2_9.png
  http://php.thing.dev.netimage.dk/48732_5_2_10.png

Both rendered on FreeBSD with freetype2-2.3.9_1 from ports.
 [2009-07-03 11:02 UTC] sta at netimage dot dk

 [2009-07-03 22:42 UTC] lbayuk at pobox dot com
Duplicated in PHP-5.2.10 and also PHP-5.3.0. The descenders are being excluded from the bounding box, at all angles. (Sigh. I was the one who opened bug #43073 for rotated bounding boxes. My mistake for not including characters with descenders in the original reproduce code.)
 [2009-07-03 23:34 UTC] pajoye@php.net
Tabe, do you have the time to look at it please?
 [2009-07-27 15:02 UTC] svn@php.net
Automatic comment from SVN on behalf of tabe
Revision: http://svn.php.net/viewvc/?view=revision&revision=286415
Log: fixed #48732 (TTF Bounding box wrong for letters below baseline) and #48801 (Problem with imagettfbbox)
 [2009-07-27 15:06 UTC] svn@php.net
Automatic comment from SVN on behalf of tabe
Revision: http://svn.php.net/viewvc/?view=revision&revision=286416
Log: MFH: fixed #48732 (TTF Bounding box wrong for letters below baseline) and #48801 (Problem with imagettfbbox)
 [2009-07-27 15:11 UTC] svn@php.net
Automatic comment from SVN on behalf of tabe
Revision: http://svn.php.net/viewvc/?view=revision&revision=286417
Log: MFH: fixed #48732 (TTF Bounding box wrong for letters below baseline) and #48801 (Problem with imagettfbbox)
 [2009-07-27 15:14 UTC] tabe@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 16:02:23 2014 UTC