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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: slip at netzmarkt dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

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

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC