Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages

Manual Reference Pages  -  FIGLET.PL (1)

.ds Aq ’

NAME - display large characters made up of ordinary screen characters



<B>figlet.plB> [ <B>-AB> ] [ <B>-CB> ] [ <B>-DB> ] [ <B>-EB> ] [ <B>-LB> ] [ <B>-NB> ] [ <B>-RB> ] [ <B>-UB> ] [ <B>-XB> ] [ <B>-cB> ] [ <B>-d=B>fontdirectory ] [ <B>-eB> EXPR] [ <B>-f=B>fontfile ] [ <B>-helpB> ] [ <B>-lB> ] [ <B>-rB> ] [ <B>-w=B>outputwidth ] [ <B>-xB> ]


<B>figlet.plB> prints its input using large characters made up of ordinary screen characters. <B>figlet.plB> output is generally reminiscent of the sort of signatures many people like to put at the end of e-mail and UseNet messages. It is also reminiscent of the output of some banner programs, although it is oriented normally, not sideways.

<B>figlet.plB> can print in a variety of fonts, both left-to-right and right-to-left, with adjacent characters kerned and smushed together in various ways. <B>figlet.plB> fonts are stored in separate files, which can be identified by the suffix .flf. Most <B>figlet.plB> font files will be stored in FIGlet’s default font directory.

<B>figlet.plB> can also use control files, which tell it to map certain input characters to certain other characters, similar to the Unix tr command. Control files can be identified by the suffix .flc. Most FIGlet control files will be stored in FIGlet’s default font directory.


<B>-AB> All Words. Once the - arguments are read, all words remaining on the command line are used instead of standard input to print letters. Allows shell scripts to generate large letters without having to dummy up standard input files.

An empty character, obtained by two sequential and empty quotes, results in a line break.

To include text begining with - that might otherwise appear to be an invalid argument, use the argument --

<B>-CB>=controlfile <B>-NB> These options deal with FIGlet controlfiles. A controlfile is a file containing a list of commands that FIGlet executes each time it reads a character. These commands can map certain input characters to other characters, similar to the Unix tr command or the FIGlet <B>-DB> option. FIGlet maintains a list of controlfiles, which is empty when FIGlet starts up. <B>-CB> adds the given controlfile to the list. <B>-NB> clears the controlfile list, cancelling the effect of any previous <B>-CB>. FIGlet executes the commands in all controlfiles in the list. See the file figfont.txt, provided with FIGlet, for details on how to write a controlfile.
<B>-DB> <B>-EB> <B>-EB> is the default, and a no-op.

<B>-DB> switches to the German (ISO 646-DE) character set. Turns ‘[’, ‘\’ and ‘]’ into umlauted A, O and U, respectively. ‘{’, ‘|’ and ‘}’ turn into the respective lower case versions of these. ‘~’ turns into s-z.

These options are deprecated, which means they may soon be removed. The modern way to achieve this effect is with control files, see <B>-CB>.

<B>-IB>infocode These options print various information about FIGlet, then exit.
1 Version (integer). This will print the version of your copy of FIGlet as a decimal integer. The main version number is multiplied by 10000, the sub-version number is multiplied by 100, and the sub-sub-version number is multiplied by 1. These are added together, and the result is printed out. For example, FIGlet 2.1.2 will print ‘‘20102’’. If there is ever a version 2.1.3, it will print ‘‘20103’’. Similarly, version 3.7.2 would print ‘‘30702’’. These numbers are guaranteed to be ascending, with later versions having higher numbers.
2 Default font directory. This will print the default font directory. It is affected by the <B>-dB> option.
3 Font. This will print the name of the font FIGlet would use. It is affected by the <B>-fB> option. This is not a filename; the .flf suffix is not printed.
<B>-LB> <B>-RB> <B>-XB> These options control whether FIGlet prints left-to-right or right-to-left. <B>-LB> selects left-to-right printing. <B>-RB> selects right-to-left printing. <B>-XB> (default) makes FIGlet use whichever is specified in the font file.
<B>-UB> Process input as Unicode, if you use a control file with the u directive unicode processing is automagically enabled for any text processed with that control.
<B>-cB> <B>-lB> <B>-rB> <B>-xB> These options handle the justification of FIGlet output. <B>-cB> centers the output horizontally. <B>-lB> makes the output flush-left. <B>-rB> makes it flush-right. <B>-xB> (default) sets the justification according to whether left-to-right or right-to-left text is selected. Left-to-right text will be flush-left, while right-to-left text will be flush-right. (Left-to-rigt versus right-to-left text is controlled by <B>-LB>, <B>-RB> and <B>-XB>.)
<B>-dB>=fontdirectory Change the default font directory. FIGlet looks for fonts first in the default directory and then in the current directory. If the <B>-dB> option is not specified, FIGlet uses the directory that was specified when it was compiled. To find out which directory this is, use the <B>-I2B> option.
<B>-eB> EXPR Evaluates the remaining arguments as perl and processes the results. This can be especially useful for retrieving Unicode characters.
<B>-fB>=fontfile Select the font. The .flf suffix may be left off of fontfile, in which case FIGlet automatically appends it. FIGlet looks for the file first in the default font directory and then in the current directory, or, if fontfile was given as a full pathname, in the given directory. If the <B>-fB> option is not specified, FIGlet uses the font that was specified when it was compiled. To find out which font this is, use the <B>-I3B> option.
<B>-m=B>smushmode Specifies how <B>Text::FIGlet::FontB> should ‘‘smush’’ and kern consecutive characters together. On the command line, <B>-m0B> can be useful, as it tells FIGlet to kern characters without smushing them together. Otherwise, this option is rarely needed, as a <B>Text::FIGlet::FontB> font file specifies the best smushmode to use with the font. <B>-mB> is, therefore, most useful to font designers testing the various smushmodes with their font. smushmode can be -2 through 63.
-2 Get mode from font file (default).

Every FIGlet font file specifies the best smushmode to use with the font. This will be one of the smushmodes (-1 through 63) described in the following paragraphs.

-1 No smushing or kerning.

Characters are simply concatenated together.

-0 Fixed width.

This will pad each character in the font such that they are all a consistent width. The padding is done such that the character is centered in it’s cell, and any odd padding is the trailing edge.

0 Kern only.

Characters are pushed together until they touch.

<B>-wB>=outputwidth These options control the outputwidth, or the screen width FIGlet assumes when formatting its output. FIGlet uses the outputwidth to determine when to break lines and how to center the output. Normally, FIGlet assumes 80 columns so that people with wide terminals won’t annoy the people they e-mail FIGlet output to. <B>-wB> sets the outputwidth to the given integer. An outputwidth of 1 is a special value that tells FIGlet to print each non- space character, in its entirety, on a separate line, no matter how wide it is. Another special outputwidth is -1, it means to not warp.

EXAMPLES -A Hello "" World


<B>figlet.plB> 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 are available at


Under pre 5.8 perl <B>-eB> may munge the first character if it is Unicode, this is a bug in perl itself. The output is usually:

    o   \\
   /_\   >>
  /   \ //

If this occurs, prepend the sequence with a null.


Text::FIGlet, figlet(6), banner(6), <|>


Jerrad Pierce <>|<>
Search for    or go to Top of page |  Section 1 |  Main Index

perl v5.20.3 FIGLET (1) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.