Problem loading fonts in gd()

From: Eric (eric_at_broadpark.no)
Date: 11/29/03


To: php-general@lists.php.net
Date: Sat, 29 Nov 2003 16:15:11 +0100

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



Relevant Pages

  • Re: [PHP] Problem loading fonts in gd()
    ... >> I have a small problem about loading fonts with imageloadfont() ... >> Does anyone know how to properly load fonts into gd, ...
    (php.general)
  • [9fans] tcpostio problem
    ... the error message ... minooka; cat log/prlisa.st ... even after aux/download has processed the fonts. ... "baud" rate, but seems to be a blocksize), the offending string and the offending location ...
    (comp.os.plan9)
  • Re: Appendix Font Changes in Word
    ... The error message indicates that the list is corrupt in some way. ... I now have two fonts in the appendix headings: ... Appendix A appears in Times NewRoman. ... The heading title appears in Arial. ...
    (microsoft.public.word.docmanagement)
  • Re: Font substitution error
    ... Hiragino Kaku Gothic Pro - or the ProW#.otf versions). ... I also checked my other Mac, did a search for these fonts (with the ... fine with no error message about substituting fonts. ... > PowerPoint and it appeared after installing Service Pack 11.1.0. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: free fonts from the net and now computer wont boot - help!
    ... It does seem like a virus, but it could just be a problem with the font ... What is the exact error message on the blue screen? ... > downloaded two fonts to my desktop. ... > and gave me the option to either start up in normal windows ...
    (microsoft.public.security.virus)