FIGLET(6)
β¨ FIGLET β the manual (part 1 of 3) β¨
okay bestie, buckle UP β this is the manual page for FIGlet, from section 6 (Games Manual). It's long, so we're doing it in three parts. This is part one. Let's go π
π NAME π
FIGlet β displays big ol' letters made out of ordinary screen characters π
π¦ SYNOPSIS π¦
figlet [ -cklnoprstvxDELNRSWX ] [ -d fontdirectory ]
[ -f fontfile ] [ -m layoutmode ]
[ -w outputwidth ] [ -C controlfile ]
[ -I infocode ] [ message ]
that's the whole vibe right there, no cap β¨
πΈ DESCRIPTION πΈ
So FIGlet takes whatever you feed it and prints it out in huge characters β and those huge characters are called FIGcharacters, which are literally just built out of normal screen characters called subcharacters. It's giving β¨arts and crafts but make it textβ¨.
The output generally hits like those signatures people love slapping at the bottom of e-mail and UseNet messages. It also kind of eats the same lunch as those banner programs, except FIGlet's is oriented normally, not sideways. main character energy, upright and unbothered π
FIGlet can print in a whole bunch of fonts, both left-to-right and right-to-left, with neighbouring FIGcharacters kerned and smushed together in various ways. Obsessed, honestly.
FIGlet fonts live in their own separate files, and you can spot them by the suffix .flf. On systems with UTF-8 support, FIGlet may also support TOIlet .tlf fonts π. Most FIGlet font files hang out in FIGlet's default font directory.
FIGlet can also use control files, which tell it to map certain input characters to certain other characters β very much the Unix tr command vibe but make it FIGlet. Control files are identifiable by the suffix .flc. Most FIGlet control files are stored in FIGlet's default font directory too.
AND β you can store FIGlet fonts and control files in compressed form. See the COMPRESSED FONTS section (coming at you later in this manual, don't worry π«Ά).
π USAGE π
Honestly? Just start up FIGlet (type figlet) and then type whatever you want. That's it. That's the whole thing. iconic π
Or, if you're feeling fancy:
- Pipe a file through FIGlet
- Pipe the output of another command through FIGlet
- Just put your input on the command line after the options
See EXAMPLES for other things to do β there's more coming, bestie, don't you worry π
okay that's part 1, keep reading, we're not done yet β¨
β¨ OPTIONS β¨
okay so the vibe with options is this: FIGlet reads them from left to right, and only the last option that affects a given parameter has any effect. And basically every option has an inverse, so if you've customized FIGlet with a shell alias, all the options are usually still available to you. iconic behavior honestly π
The commonly-used ones are -f, -c, -k, -t, -p and -v. The rest are for when you're feeling extra.
-ffontfile β picks your font, bestie. The.flfsuffix can be left off 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. No-f? Then FIGlet uses the font that was specified when it was compiled. Wanna know which one that is? Use the-I3option. π-dfontdirectory β changes the default font directory. FIGlet looks for fonts first in the default directory and then in the current directory. If-disn't specified, FIGlet uses the directory that was specified when it was compiled. To find out which directory that is, use-I2.-c,-l,-r,-xβ these handle the justification of FIGlet output.-ccenters the output horizontally.-lmakes the output flush-left.-rmakes it flush-right.-x(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-right versus right-to-left text is controlled by-L,-Rand-X.) centering your text is literally main character energy π-t,-woutputwidth β these control the outputwidth, aka the screen width FIGlet assumes when formatting its output. FIGlet uses 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 (so considerate π₯Ί).-tsets the outputwidth to the terminal width β but if the terminal width cannot be determined, the previous outputwidth is retained.-wsets the outputwidth to the given integer. An outputwidth of1is a special value that tells FIGlet to print each non-space FIGcharacter, in its entirety, on a separate line, no matter how wide it is. wild but ok-p,-nβ these control how FIGlet handles newlines.-pputs FIGlet into "paragraph mode", which eliminates some unnecessary line breaks when piping a multi-line file through FIGlet. In paragraph mode, FIGlet treats line breaks within a paragraph as if they were merely blanks between words. (Specifically,-pcauses FIGlet to convert any newline which is not preceded by a newline and not followed by a space character into a blank.)-n(default) puts FIGlet back to normal, in which every newline FIGlet reads causes it to produce a line break.-D,-Eβ-Dswitches to the German (ISO 646-DE) character set. It turns[,\and]into umlauted A, O and U, respectively.{,|and}turn into the respective lower case versions of these.~turns into s-z.-Eturns off-Dprocessing.
β οΈ heads up: these options are deprecated, which means they probably will not appear in the next version of FIGlet. rip π
-Ccontrolfile,-Nβ these 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 Unixtrcommand or the FIGlet-Doption. FIGlet maintains a list of controlfiles, which is empty when FIGlet starts up.-Cadds the given controlfile to the list.-Nclears the controlfile list, cancelling the effect of any previous-C. FIGlet executes the commands in all controlfiles in the list. See the filefigfont.txt, provided with FIGlet, for details on how to write a controlfile. π-s,-S,-k,-W,-oβ these control how FIGlet spaces the FIGcharacters that it outputs.-s(default) and-Scause "smushing". The FIGcharacters are displayed as close together as possible, and overlapping sub-characters are removed. Exactly which sub-characters count as "overlapping" depends on the font's layoutmode, which is defined by the font's author.-kcauses "kerning" β as many blanks as possible are removed between FIGcharacters, so that they touch, but the FIGcharacters are not smushed.-Wmakes FIGlet display all FIGcharacters at their full width, which may be fixed or variable, depending on the font.
The difference between -s and -S is that -s will not smush a font whose author specified kerning or full width as the default layoutmode, whereas -S will attempt to do so.
If there is no information in the font about how to smush, or if the -o option is specified, then the FIGcharacters are "overlapped". This means that after kerning, the first subcharacter of each FIGcharacter is removed. (This is not done if a FIGcharacter contains only one subcharacter.)
-mlayoutmode β specifies an explicit layoutmode between1and63. Smushmodes are explained infigfont.txt, which also provides complete information on the format of a FIGlet font. For the sake of backward compatibility with versions of FIGlet before 2.2,-m0is equivalent to-k,-m-1is equivalent to-W, and-m-2is equivalent to-s. The-mswitch is normally used only by font designers testing the various layoutmodes with a new font. π-v,-Iinfocode β these print various information about FIGlet, then exit. If several of these options are given on the command line, only the last is executed, and only after all other command-line options have been dealt with.
-v prints version and copyright information, as well as a "Usage: ..." line. -I prints the information corresponding to the given infocode in a consistent, reliable (i.e., guaranteed to be the same in future releases) format. -I is primarily intended to be used by programs that use FIGlet. infocode can be any of the following:
-1β Normal operation (default). This infocode indicates that FIGlet should operate normally, not giving any informational printout, printing its input in the selected font.0β Version and copyright. This is identical to-v.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.2 will print20200, version 2.2.1 will print20201. Similarly, version 3.7.2 would print30702. These numbers are guaranteed to be ascending, with later versions having higher numbers. Note that the first major release of FIGlet, version 2.0, did not have the-Ioption.2β Default font directory. This will print the default font directory. It is affected by the-doption.3β Font. This will print the name of the font FIGlet would use. It is affected by the-foption. This is not a filename; the.flfsuffix is not printed.4β Output width. This will print the value FIGlet would use for outputwidth, the number of columns wide FIGlet assumes the screen is. It is affected by the-wand-toptions.5β Supported font formats. This will list font formats supported by FIGlet. Possible formats areflf2for FIGfont Version 2.flffiles andtlf2for TOIlet.tlffiles.
If infocode is any other positive value, FIGlet will simply exit without printing anything. okay slay, no output for you π«Ά
-L,-R,-Xβ these control whether FIGlet prints left-to-right or right-to-left.-Lselects left-to-right printing.-Rselects right-to-left printing.-X(default) makes FIGlet use whichever is specified in the font file.
Once the options are read, if there are any remaining words on the command line, they are used instead of standard input as the source of text. This feature allows shell scripts to generate large letters without having to dummy up standard input files. no cap, that's the good stuff β¨
An empty argument, obtained by two sequential quotes, results in a line break.
π EXAMPLES π
To use FIGlet with its default settings, simply type
example% figlet
and then type whatever you like. go off bestie π
To change the font, use the -f option, for example,
example% figlet -f script
Use the -c option if you would prefer centered output:
example% figlet -c
We have found that the most common use of FIGlet is making up large text to be placed in e-mail messages. For this reason, FIGlet defaults to 80 column output. If you are using a wider terminal, and would like FIGlet to use the full width of your terminal, use the -t option:
example% figlet -t
If you don't want FIGlet to smush FIGcharacters into each other, use the -k option:
example% figlet -k
If figlet gets its input from a file, it is often a good idea to use -p:
example% figlet -p < myfile
Of course, the above can be combined:
example% figlet -ptk -f shadow < anotherfile
example% figlet -cf slant
Finally, if you want to have FIGlet take the input from the command line instead of a file:
example% figlet Hello world
π¦ Other Things to Try π¦
On many systems nice effects can be obtained from the lean font by piping it through tr. Some you might want to try are the following:
example% figlet -f lean | tr ' _/' ' ()'
example% figlet -f lean | tr ' _/' './\\'
example% figlet -f lean | tr ' _/' ' //'
example% figlet -f lean | tr ' _/' '/ '
Similar things can be done with the block font and many of the other FIGlet fonts. the way that this just works... obsessed ππ
πΎ COMPRESSED FONTS πΎ
okay so you can literally squash your fonts and controlfiles down using the zip archiving program. bestie, the rule is: put only one font or controlfile in each archive, then rename the archive file (which is gonna have a name ending in .zip) back to .flf or .flc as the case may be. and like β if you don't rename it appropriately, FIGlet straight up won't be able to find it. no cap. π
FIGlet does not care what the filename within the .zip archive is, and will process only the first file. it's giving "i don't read the labels, i just eat." π
the .zip format was chosen because tools to create and manipulate it are widely available for free on many platforms. iconic, honestly.
πΈ THE STANDARD FONTS πΈ
here are a few notes about some of the fonts provided with FIGlet. you can get many other font from the Web site http://www.figlet.org/ β¨ this location should also contain the latest version of FIGlet and other related utilities.
the font standard is the basic FIGlet font, used when no other font is specified. (this default can be changed when FIGlet is compiled on your system.) the controlfiles 8859-2, 8859-3, 8859-4, and 8859-9 are provided for interpreting those character sets, also known as ISO Latin-2 through Latin-5 respectively. the character set 8859-1 (ISO Latin-1) is FIGlet's default and requires no special controlfile. π
closely related are the fonts slant, shadow, small, smslant (both small and slanted), smshadow, (both small and shadowed), and big. these fonts support only Latin-1, except that big supports Greek FIGcharacters as well; the controlfiles frango (for Greek text written in Latin characters, so-called frangovlakhika), and 8859-7 (for mixed Latin/Greek text) are provided.
the ivrit font is a right-to-left font including both Latin and Hebrew FIGcharacters; the Latin characters are those of the standard font. the available controlfiles are ilhebrew, which maps the letters you get by typing on a U.S. keyboard as if it were a Hebrew keyboard; ushebrew, which makes a reasonable mapping from Latin letters to Hebrew ones; and 8859-8, which supports mixed Latin/Hebrew text.
β οΈ Warning: FIGlet doesn't support bidirectional text, so everything will come out right-to-left, even Latin letters. it's giving chaos but make it β¨scriptureβ¨.
the fonts terminal, digital, and bubble output the input character with some decoration around it (or no decoration, in the case of terminal). the characters coded 128 to 159, which have varying interpretations, are output as-is. you can use the appropriate controlfiles to process Latin-2, Latin-3, or Latin-4 (but not Latin-5) text, provided your output device has screen or printer fonts that are appropriate for these character sets.
two script fonts are available: script, which is larger than standard, and smscript, which is smaller. π
the font lean is made up solely of / and _ sub-characters; block is a straight (non-leaning) version of it.
the font mini is very small, and especially suitable for e-mail signatures. perfect for the girlies who need a tiny sig that still ate. π
the font banner looks like the output of the banner program; it is a capitals and small capitals font that doesn't support the ISO Latin-1 extensions to plain ASCII. it does, however, support the Japanese katakana syllabary; the controlfile uskata maps the upper-case and lower-case Latin letters into the 48 basic katakana characters, and the controlfile jis0201 handles JIS 0201X (JIS-Roman) mixed Latin and katakana text. furthermore, the banner font also supports Cyrillic (Russian) FIGcharacters; the controlfile 8859-5 supports mixed Latin and Cyrillic text, the controlfile koi8r supports the popular KOI8-R mapping of mixed text, and the controlfile moscow supports a sensible mapping from Latin to Cyrillic, compatible with the moscow font (not supplied).
the fonts mnemonic and safemnem support the mnemonic character set documented in RFC 1345. they implement a large subset of Unicode (over 1800 characters) very crudely, using ASCII-based mnemonic sequences, and are good for getting a quick look at UTF-8 unicode files, using the controlfile utf8. π¦
π ENVIRONMENT π
FIGLET_FONTDIRβ if$FIGLET_FONTDIRis set, its value is used as a path to search for font files. lowkey a glow-up for your font-hunting game. β¨
π FILES π
file.flfβ FIGlet font filefile.flcβ FIGlet control file
π DIAGNOSTICS π
FIGlet's diagnostics are intended to be self-explanatory. possible messages are:
Usage: ...
Out of memory
Unable to open font file
Not a FIGlet 2 font file
Unable to open control file
Not a FIGlet 2 control file
"-t" is disabled, since ioctl is not fully implemented.
this last message is printed when the -t option is given, but the operating system in use does not include the system call FIGlet uses to determine the terminal width.
FIGlet also prints an explanatory message if the -F option is given on the command line. the earlier version of FIGlet, version 2.0, listed the available fonts when the -F option was given. this option has been removed from FIGlet 2.1. it has been replaced by the figlist script, which is part of the standard FIGlet package. rip -F, you had a good run. π
π ORIGIN π
FIGlet stands for Frank, Ian and Glenn's LETters. inspired by Frank's .sig, Glenn wrote (most of) it, and Ian helped. fr fr, the lore is unmatched.
most of the standard FIGlet fonts were inspired by signatures on various UseNet articles. since typically hundreds of people use the same style of letters in their signatures, it was often not deemed necessary to give credit to any one font designer. β¨
π BUGS π
very little error checking is done on font and control files. while FIGlet tries to be forgiving of errors, and should (hopefully) never actually crash, using an improperly-formatted file with FIGlet will produce unpredictable output. bestie, that's not a vibe check, that's a vibe risk. π
FIGlet does not handle format characters in a very intelligent way. a tab character is converted to a blank, and vertical-tab, form-feed and carriage-return are each converted to a newline. on many systems, tabs can be handled better by piping files through expand before piping through FIGlet.
FIGlet output is quite ugly if it is displayed in a proportionally-spaced font. i suppose this is to be expected. π
please report any errors you find in this man page or the program to <info@figlet.org>. π«Ά
π WEBSITE AND MAILING LIST π
you can get many fonts which are not in the basic FIGlet package from the Web site http://www.figlet.org/ it should also contain the latest version of FIGlet and other utilities related to FIGlet.
there is a mailing list for FIGlet for general discussions about FIGlet and a place where you can ask questions or share ideas with other FIGlet users. it is also the place where we will publish news about new fonts, new software updates etc. π£
to subscribe or unsubscribe from the FIGlet mailing list, please send email to figlet-subscribe@figlet.org or figlet-unsubscribe@figlet.org or visit the following web page: http://www.figlet.org/mailman/listinfo/figlet
π«Ά AUTHORS π«Ά
Glenn Chappell did most of the work. you can e-mail him but he is not an e-mail fanatic; people who e-mail Glenn will probably get answers, but if you e-mail his best friend:
Ian Chai, who is an e-mail fanatic, you'll get answers, endless conversation about the mysteries of life, invitations to join some 473 mailing lists and a free toaster. (well, ok, maybe not the free toaster.) πβ¨
Frank inspired this whole project with his .sig, but don't e-mail him; he's decidedly an un-e-mail-fanatic.
Gilbert "The Mad Programmer" Healton added the -A option for version 2.1.1. this option specified input from the command line; it is still allowed, but has no effect. it's giving retired icon. π
John Cowan added the -o, -s, -k, -S, and -W options, and the support for Unicode mapping tables, ISO 2022/HZ/Shift-JIS/UTF-8 input, and compressed fonts and control files. he also revised this documentation, with a lot of input from Paul Burton.
Claudio Matsuoka added the support for .tlf files for version 2.2.4 and performs random hacks and bugfixes. π₯
as a fan of FIGlet, Christiaan Keet revised the official FIGlet documentation and set up the new FIGlet website at http://www.figlet.org/ (and the corresponding ftp://ftp.figlet.org/pub/figlet/)
π SEE ALSO π
figlist(6), chkfont(6), showfigfonts(6), toilet(1)
okay that's the whole page bestie, you're officially FIGlet-pilled. π this was v2.2.5, dated 31 May 2012, from FIGLET(6) β go forth and make your terminal pretty, periodt. πβ¨
π¦ where this page comes from
- debian bookworm: figlet 2.2.5-3+b1 Β· BSD-3-Clause
- debian trixie: figlet 2.2.5-3+b2 Β· BSD-3-Clause
- ubuntu jammy: figlet 2.2.5-3 Β· BSD-3-Clause
- ubuntu noble: figlet 2.2.5-3 Β· BSD-3-Clause
- Copyright (C) 1991, 1993, 1994 Glenn Chappell and Ian Chai
- Copyright 1996, 1997, 1998, 1999, 2000, 2001 by John Cowan <cowan@ccil.org>
- Copyright 2002 by Christiaan Keet
- Copyright 2011, 2012 by Claudio Matsuoka
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms