Bug #17261 Updated: imagettfbbox

From: Date: Tue, 25 Jun 2002 13:13:48 +0000
Subject: Bug #17261 Updated: imagettfbbox
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12039@lists.php.net to get a copy of this message
 ID:               17261
 Updated by:       j_fondecave@ifrance.com
 Reported By:      nicolaasuni@tiscali.it
 Status:           Feedback
 Bug Type:         GD related
 Operating System: Windows XP Pro
 PHP Version:      4.2.1
 New Comment:

On win2K + php 4.2.1 + jpgraph, i have :
DEFINE("TTF_DIR","/WINNT/fonts/");

but the function : 
function File($fam,$style=FS_NORMAL)
has an incorrect test :
if( !file_exists($f) )

remove this test and the error message disappear.


Previous Comments:
------------------------------------------------------------------------

[2002-06-11 05:08:31] mfischer@php.net

Try using strace and the php cgi binary to find where the problem. Make
a simple script which calls imagettfbox (but one which doesn't output
the image data) and then run it:

strace php-cgi -f yourscruipt.php

optionally, redirect the output to a file. search for the font name and
you will see where gd tries to access it.

Strace: http://razor.bindview.com/tools/desc/strace_readme.html

------------------------------------------------------------------------

[2002-06-11 04:49:56] nicolaasuni@tiscali.it

I'm sorry but the solution described by edink@php.net do not work for
me.
I've correctly set the GDFONTPATH enviromental variable but the problem
persist.
I've tested this way using WXP Pro, PHP4.2.1., GD 1.8.x and GD 2.
The problem is always the same: Could not find/open font...

------------------------------------------------------------------------

[2002-06-10 06:00:55] derick@php.net

Edin is delclared HERO so we can close the bug :)

Derick

------------------------------------------------------------------------

[2002-06-09 22:19:18] admin@trevorj.com

YOU ARE MY HERO

thank you soo much!

------------------------------------------------------------------------

[2002-06-09 20:03:14] edink@php.net

Could you try the solution described in the last comment at:
http://bugs.php.net/bug.php?id=17192


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17261

-- 
Edit this bug report at http://bugs.php.net/?id=17261&edit=1



Thread (12 messages)

« previous php.bugs (#12039) next »