Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How to use Imager for text

by bradcathey (Prior)
on Oct 28, 2005 at 18:13 UTC ( [id://503726]=note: print w/replies, xml ) Need Help??


in reply to Re: How to use Imager for text
in thread How to use Imager for text

Thanks teabag, but designating the type as 'ft2' didn't work. I managed to get an arial.ttf file uploaded to my cgi-bin, but still no dice. I'm surprised I getting a blank screen without any error messages, even if I substitute 'arial' for some font I know is not there. BTW, I'm getting a positive read with:

print "Has truetype" if $Imager::formats{tt};

Here's what I have now, for what it's worth:

my $font = Imager::Font->new( file => "arial", type => "tt", index => 1, color => "444444", size => 30, aa => 1); $img->string( font => $font, text => "This is a test string", x => 20, y => 10);

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://503726]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found