|<B>-C=>B>controlfile||Creates a control object. Text::File::Control for control object specific options to new, and how to use the object.|
|<B>-f=>B>fontfile | \@fonts | \%fonts||Loads fontfile if specified, and creates a font object. Text::File::Font for font object specific options to new, and how to use the object.|
Whence to load files.
Defaults to /usr/local/share/figlet
new with no options will create a font object using the default font.
perl -MText::FIGlet -e print ~~Text::FIGlet->new()->figify(-A=>"Hello World")
To generate headings for webserver directory listings, for that warm and fuzzy BBS feeling.
Text based clocks or counters at the bottom of web pages.
Anti-bot obfuscation a la AUTHOR.
A variety of interesting effects can be obtained from dot-matrix-like fonts such as lean and block by passing them through tr. Hare are some to try:
tr/|/]/ tr[ _/][ ()] tr[ _/][./\\] tr[ _/][ //] tr[ _/][/ ]
#50% chance of replacing a space with an x s/( )/rand()>.5?$1:x/eg #50% chance of replacing a space with an entry from @F @F = qw/. x */; s/( )/$F[scalar@F*2*rand()]||$1/eg; #5% chance of substituting a random ASCII character #Note that this may yield unpleasant results if UTF is involved s/(.)/rand()<.05?chr(32+rand(94)):$1/eg
<B>Text::FIGletB> will make use of these environment variables if present
FIGFONT The default font to load. If undefined the default is standard.flf. It should reside in the directory specified by FIGLIB. FIGLIB The default location of fonts. If undefined the default is /usr/local/share/figlet
FIGlet font files and control files are available at
Module architecture: <http://pthbb.org/manual/software/perl/T-F/>
Animated FIGlet: Acme::Curses::Marquee::Extensions
Ancestors: figlet(6) <http://www.figlet.org>, banner(6), Text::Banner
If you are using perl 5.005 and wish to try to acces Unicode characters programatically, or are frustrated by perl 5.6s Unicode support, you may try importing UTF8chr from this module.
This module also offers UTF8ord and UTF8len, which are used internally, but may be of general use. To import all three functions, use the <B>:EncodeB> import tag. UTF8len does not count control characters (0x00-0x19)!
** />> _ // _ _ _ / >>> (_) ** ,adPPYba, >< ><<< _(_)(_)(_) / >>> | | /** a8P_____88 ><< (_) >> >>> | | |~~\ /** 8PP""""""" ><< (_) >>>>>>>> _/ | |__/ /** "8b, ,aa ><< (_)_ _ _ >>>>>>> @cpan.org |__/ | /** `"Ybbd8" ><<< (_)(_)(_) >> // >>>> / >>>>>>/ >>>>>
|perl v5.20.3||TEXT::FIGLET (3)||2016-04-03|