views:

848

answers:

3

I got this error on my image generation script :

Warning: imageftbbox() [function.imageftbbox]: Problem loading glyph:

I think because of this I can't generate images from text properly - how do I fix this!

+1  A: 

there was a problem loading a font file. check the path, filename etc.

dusoft
A: 

If there is a problem with the path/filename you'll get a "Invalid font filename" warning.
"Problem loading glyph" means that there is an actual problem with the file's format, i.e. FT_Load_Glyph of the gd library wasn't able to interpret the font definition.

VolkerK
A: 

Your php build is probably not compiled with freetype2. Check the config options of your php build by running phpinfo() withing a php script.

Nick Miller