Problem loading fonts in gd()
| From: | Eric | Date: | Sat, 29 Nov 2003 15:15:11 +0000 |
| Subject: | Problem loading fonts in gd() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171353@lists.php.net to get a copy of this message | ||
Hello all PHP gurus
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?
Eric