boboson has asked for the wisdom of the Perl Monks concerning the following question:
The above truetype capable check displays nothing.my $font = Imager::Font->new(file => 'bettynoir.ttf'); print "err:".Imager->errstr."<br />"; # ERROR PRODUCED: Font type not found $img->string(x => 50, y => 70, string => "Hello, World!", font => $font, size => 30, aa => 1, color => 'white'); print "Font-error:".$img->errstr."<br />"; # ERROR PRODUCED: missing required parameter 'font' # Check if Imager is t1 or truetype capable print "Has truetype" if $Imager::formats{tt}; print "Has t1 postscript" if $Imager::formats{t1}; print "Has Win32 fonts" if $Imager::formats{w32}; print "Has Freetype2" if $Imager::formats{ft2};
Can anyone point me in the right direction? What needs to be installed on the server, where do I place the fonts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't get Imager::Font to work
by texasperl (Sexton) on Dec 25, 2006 at 02:56 UTC | |
|
Re: Can't get Imager::Font to work
by zentara (Cardinal) on Dec 25, 2006 at 13:58 UTC | |
by boboson (Monk) on Dec 25, 2006 at 20:10 UTC |