php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #9710 ImageTTFText bounding box coordinates incorrect in manual
Submitted: 2001-03-12 13:00 UTC Modified: 2001-12-30 11:38 UTC
From: bobw123 at mail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.2 OS: BSDI 4.1
Private report: No CVE-ID: None
 [2001-03-12 13:00 UTC] bobw123 at mail dot com
Hi,

The coordinates returned from ImageTTFText 
are stated to be "upper left, upper right, lower right, lower left"
in the manual, but are returned as the following ( which is the
same array structure that is returned from ImageTTFBBox):

bottom left:
x: 0 
y: 1

bottom right
x: 2
y: 3

top right:
x: 4
y: 5 

top left:
x: 6
y: 7


Possibly the newer version of GD/PHP returns the different array
sructure, as I am using GD 1.3.

Bob

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-06 13:56 UTC] andy@php.net
Documentation is wrong

Assigned to myself.
 [2001-08-06 14:25 UTC] andy@php.net
ok, maybe I'm not so sure, can anybody with windows test this...
 [2001-10-10 13:58 UTC] sander@php.net
Documentation about ImageTTFBBox is correct.
Documentation about ImageTTFText is NOT correct, it should read "lower left, lower right, upper right, upper left".

Tested with PHP-4.0.6 with the GD binary from 4.0.5 (which is 1.8.x).
 [2001-12-30 11:38 UTC] mrobinso@php.net
Fixed in CVS.
Thanks for your report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 08 08:01:29 2024 UTC