in reply to Re^4: Text::Wrap not working
in thread Text::Wrap not working
#!/usr/bin/perl use strict; use warnings; use GD; use GD::Text::Wrap; my $gd = GD::Image->new(800,600); my $text = <<EOSTR; This is the way it is. This is the way it was. EOSTR my $wrapbox = GD::Text::Wrap->new( $gd, text => $text); $wrapbox->set_font(gdMediumBoldFont); $wrapbox->set_font('arial', 12); $wrapbox->set(align => 'left', width => 40); $wrapbox->draw(10, 140); print "\n$text\n";
|
|---|