Re: [PHP-DEV] Bug #498: ImageTTFBBox returns negative values From: Stig S. Bakken (ssb <email protected>)
Date: 07/02/98

[slip <email protected>]
|
| From: slip <email protected>
| Operating system: Solaris 2.5.1
| PHP version: 3.0 Latest CVS
| PHP Bug Type: Misbehaving function
| Bug description:
| I tried the new function ImageTTFBBox out and got some
| negative X and Y values is that supposed to be so?
|
| <?php
| $test=ImageTTFBBox(20,0,"Arialn.ttf","Test");
| ?>
|
| Result:
| $test[0] is -1 (UL, X)
| $test[1] is -1 (UL, Y)
| $test[2] is 30 (UR, X)
| $test[3] is -1 (UR, Y)
| $test[4] is 30 (LR, X)
| $test[5] is -15 (LR, Y)
| $test[6] is -1 (LL, X)
| $test[7] is -15 (LL, Y)
|
| (UL=Upper Left corner, and so on)

(I'm unable to connect to the bugs database right now.) Yes, this is
supposed to be so.

 - Stig

-- 
 Stig S. Bakken                    Guardian Networks AS
 mailto:ssb <email protected>            Trondheim, Norway
 http://www.pvv.org/~ssb/          http://www.guardian.no/