in reply to Re: Font question regarding GD.pm
in thread Font question regarding GD.pm

Thanks for the reply.

OK, lets say I create the following text using GD::Text, how then do I use it with a GD::Image object? In other words, what method do I call to position $gd_text on a png image?
my $gd_text = GD::Text->new( text => 'Some text', font => 'times.ttf', ptsize => 14, );

Replies are listed 'Best First'.
Re^3: Font question regarding GD.pm
by socketdave (Curate) on Jul 19, 2005 at 15:38 UTC
    Take a peek at this thread:
    http://groups-beta.google.com/group/comp.lang.perl.misc/browse_thread/thread/e0e3efc840f45279/0ec9568510bfb279?q=gd::text+gd::image&rnum=2&hl=en#0ec9568510bfb279
    The section titled "GD + GD::Text example" may give you a starting point. If this doesn't help, let me know. This is a useful thing to know and I'll try to get it working...
Re^3: Font question regarding GD.pm
by Baz (Friar) on Jul 19, 2005 at 15:31 UTC
    Found the method $im->stringFT($black,$font,30.0,-0.5,130,130,"Goodbye cruel world!");
    and it works fine.