align-string.pl - demo of the Imager align_string() method
perl align-string.pl fontfile size outputfile text ...
Create an image in output imagein outputfile displaying a grid of the various valign and halign options for the Imager align_string() method.
imagein
outputfile
valign
halign
Try it with different fonts and strings to get a better understanding of the effect of the different alignments.
Tony Cook <tony@imager.perl.org>
Imager, Imager::Font
$Revision: 1724 $
To install Imager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager
CPAN shell
perl -MCPAN -e shell install Imager
For more information on module installation, please visit the detailed CPAN module installation guide.