Re: error with Captcha

From: Date: Sat, 17 Mar 2007 16:51:27 +0000
Subject: Re: error with Captcha
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26866@lists.php.net to get a copy of this message
Tiron Adrian wrote:
Hello, I'm trying the first example from the Captcha pakage(wich tries to create a png) and i get the following error: Error initializing Image_Text (font missing?!). This is form from my phpinfo(): ./configure...........' '--with-freetype-dir=/usr'...........and this:
GD Support     enabled GD Version     bundled (2.0.28 compatible) FreeType Support     enabled FreeType Linkage     with freetype FreeType Version     2.2.1
and the command locate ttf | grep -i COUR.TTF gives me: /usr/share/fonts/msttcorefonts/cour.ttf so perhaps i should recompile php with a different path to freetype?But i'm not sure exactly which path.......any ideas?Thanks. Is there a freetype extention available with yum?(I'm using FC6) .
Maybe a permissions problem? You didn't say spceifically how you passed the location of the font in the options array. If you think the path is correct, try copying the font to some place under document root and pointing to there. b

« previous php.pear.general (#26866) next »