Hello Kevin,

    Maybe, the problem is with the TTF file (3rd param for
    imagettfbox())? Did you try to replace it by another one?

KB> Hi. I'm new to the list, but not new to PHP.

KB> Anyway, I have a small PHP script that was meant to help learn about 
KB> doing stuff with the GD library. Basically, it opens an image of a 
KB> button and centers text on top of it, then displays it. To center the 
KB> text, it uses ImageTTFBBox(). However, it appears that whenever I use 
KB> this call, the PHP script hangs, and after about 10 seconds my web 
KB> browser (Safari) says that it couldn't read any data from the server (I 
KB> assume this means the server closed the connection without sending any 
KB> data to the browser). If I comment out the call, the script proceeds 
KB> just fine.

KB> Actually, after looking at it again, it does the exact same behaviour 
KB> on ImageTTFText(). I can't figure out what the problem is, unless it 
KB> somehow hangs on reading in the TrueType font.

KB> Can anybody figure out what my problem could be? Alternately, if nobody 
KB> can do that, is there any way to figure out the width/height of font 
KB> rendered using the built in fonts (i.e. 1-5 with imagestring())?

KB> For reference, my script can be found here: 
KB> <http://kballard.res.wpi.net/button.phps>

KB> -- 
KB> Kevin Ballard
KB> [EMAIL PROTECTED]
KB> http://www.tildesoft.com



-- 
Best regards,
 MuToGeN                            mailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to