Bug #1987 Updated: ImageTTFBBox does not return correct bounding box.
| From: | Bug Database | Date: | Tue, 10 Aug 1999 07:05:54 +0000 |
| Subject: | Bug #1987 Updated: ImageTTFBBox does not return correct bounding box. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9709@lists.php.net to get a copy of this message | ||
ID: 1987
Updated by: markonen
Reported By: animate2@underworld.net
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
ImageTTFBBox behaviour is -- while not too logical -- predictable. Your problem doesn't seem to
be the size of
the bounding box, but rather the placement of the string inside that box.
The coordinates returned by the function tell you how much space you need on every side of your
initial coordinates. If you get a negative value for the lower right X coordinate, for example, you
need to push the string coordinates for ImageTTFText that much forward in order to get the string to
fit the image.
Fiddle with it, and contact me if the problem persists. The behaviour is a feature of FreeType, and
we can do very little about it.
Full Bug description available at: http://bugs.php.net/?id=1987