Re: [PHP] Can't find my font file - Please help

2002-08-10 Thread Rasmus Lerdorf

Try leaving off the .ttf

On Fri, 9 Aug 2002, JR wrote:

 I am trying to use the imagettfbbox  function. Am testing the script on my
 local network
 running W2K.  Have defined :
 $fontfile = arial.tff;   // this file is in the same directory
 with my script
 The instruction that fails:
 $thetextbox = ImageTTFBBox ($fontsize, 0, $fontfile, My Button);
 The error message is:
 Warning: Could not find/open font in
 c:\phpdev\www\public\kazaam\rendertext.php on line 9



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



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




[PHP] Can't find my font file - Please help

2002-08-09 Thread JR

I am trying to use the imagettfbbox  function. Am testing the script on my
local network
running W2K.  Have defined :
$fontfile = arial.tff;   // this file is in the same directory
with my script
The instruction that fails:
$thetextbox = ImageTTFBBox ($fontsize, 0, $fontfile, My Button);
The error message is:
Warning: Could not find/open font in
c:\phpdev\www\public\kazaam\rendertext.php on line 9



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




Re: [PHP] Can't find my font file - Please help

2002-08-09 Thread Jason Wong

On Saturday 10 August 2002 09:48, JR wrote:
 I am trying to use the imagettfbbox  function. Am testing the script on
 my local network
 running W2K.  Have defined :
 $fontfile = arial.tff;   // this file is in the same

Shouldn't that be arial.ttf ?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
I have just one word for you, my boy...plastics.
- from The Graduate
*/


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