php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #498 ImageTTFBBox returns negative values
Submitted: 1998-07-02 02:59 UTC Modified: 1998-07-02 06:02 UTC
From: slip at netzmarkt dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1998-07-02 02:59 UTC] slip at netzmarkt dot de
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)

Here's my configure line:
./configure --with-apache=/extern2/src/apache_1.3.0 --with-gd=/usr/local 
--with-mysql --enable-debug=no --enable-track-vars=yes --enable-memory-limit=yes

Regards,
Stefan Livieratos

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-02 06:02 UTC] ssb
Supposed to be so.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC