Re: [PHP] Problem loading fonts in gd()
From: Eric (eric_at_broadpark.no)
Date: 11/29/03
- Next message: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Previous message: Duncan: "Re: [PHP] Checking if a host is online"
- In reply to: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Next in thread: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Reply: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Sat, 29 Nov 2003 20:59:35 +0100
"Jason Wong" <php-general@gremlins.biz> wrote in message
news:200311300249.21508.php-general@gremlins.biz...
> On Saturday 29 November 2003 23:15, Eric wrote:
>
> > I have a small problem about loading fonts with imageloadfont()
> >
> > I have copyed fonts with the extension .fon or .ttf to the same
directory
> > as my script, and i give them the font as an argument:
> >
> > $font = imageloadfont('arial.ttf');
> >
> > But i just keep getting the message:
> > Warning: imageloadfont(): Error reading font in c:\program files\apache
> > group\apache\htdocs\gd_test.php on line 35
> >
> > Does anyone know how to properly load fonts into gd, without getting
this
> > error message?
>
> Try using the full, absolute path to the font.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> There is no such thing as the "right feed
> -- Murphy's Horse Laws n18
> */
I have already tried that:
imageloadfont("C:/WINDOWS/Fonts/arial.ttf");
i also tried:
imageloadfont("C:\\WINDOWS\\Fonts\\arial.ttf");
I ALSO tried this:
imageloadfont($_SERVER['DOCUMENT_ROOT'].'/gd_test.php');
and that didn't work either....
So I'm unfortunately still stuck.
Eric
- Next message: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Previous message: Duncan: "Re: [PHP] Checking if a host is online"
- In reply to: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Next in thread: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Reply: Jason Wong: "Re: [PHP] Problem loading fonts in gd()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]