Re: Can't find my font file - Please help
| From: | Rasmus Lerdorf | Date: | Sun, 11 Aug 2002 04:06:14 +0000 |
| Subject: | Re: Can't find my font file - Please help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111999@lists.php.net to get a copy of this message | ||
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
>