Render the passed string as ascii text. By default this will print to the terminal.
$ascii->render("Hello World");
...
You can capture lines of text instead by passing an array reference as the second argument.
my $lines = [];
$ascii->render("Hello World", $lines);
print join "", @{$lines};
=head2 stringify
Stringify the ascii text. Optionally you can pass an additional true value which will wrap the ascii text removing trailing empty lines which maybe unused based on the character set.
$ascii->stringify("Hello World");
$ascii->stringify("Hello World", 1);
=cut
=head1 ATTRIBUTES
=head2 max_width
Set/Get the max width of a line of text by default this uses L<Term::Size::ReadKey> so that the max width of your terminal is used.
$ascii->max_width(100);
=head2 pad
Set/Get the left padding of the text on a line. When "align" is set to center or right this value will become redundant. The default value is 0.
$ascii->pad(10);
=head2 font
Set/Get the reference to the font class.
$ascii->font("Boomer");
=head2 align
Set/Get the alignment of the text on the line. Options are left, center or right.
$ascii->align('right');
=head2 color
Set/Get the font color
$ascii->color("red");
=head2 color_map
Override the default ANSI color map.
$ascii->color_map({
red => "\e[31m",
...
});
=head2 fh
A filehandle to print the ascii text.
open my $fh, '>', 'test.txt';
$ascii->fh($fh);
$ascii->("Hello World");
=head1 AUTHOR
LNATION, C<< <email at lnation.org> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-ascii-text at rt.cpan.org>, or through