Hi,
I'm trying to use GD::SecurityImage but I'm having troble with getting fonts to work. If I set up the object as:
my $image = GD::SecurityImage->new(
width => 400,
height => 200,
ptsize => 90,
lines => 5,
thickness => 1,
font => '/my/path/to/fonts/StayPuft.ttf',
#font => 'StayPuft.ttf',
);
my $random_string = 'Blah';
$image->random($random_string);
$image->create( qw/ ttf ec #000000 #66CC00 / );
I get the image with out any text on it. I have tried setting GD::Text->font_path() and using a relative path but nothing seems to work also I have check that Apache has permissions to read the font file.
Any suggestions would be appreciated.
Ivan Wills