FIGlet

{{Infobox software

| name = FIGlet

| logo =

| screenshot =

| caption =

| author = Glenn Chappell, Ian Chai

| developer =

| released = 1991 (as "newban") / 1993 (figlet 2.0){{cite web|url=http://www.figlet.org/figlet_history.html|title="Why does FIGlet exist?" a history of FIGlet|year=1995|first=Glen|last=Chappell|access-date=2008-04-25}}

| latest release version = 2.2.5{{cite web|url=http://www.figlet.org|title=FIGLet home page|access-date=2012-06-18}}

| latest release date = May 2012

| latest preview version =

| latest preview date =

| programming language = C

| operating system = Unix-like

| platform = Cross-platform

| language =

| genre = Typesetting

| license = New BSD{{cite web|url=http://www.figlet.org/figlet_history.html|title="Why does FIGlet exist?" a history of FIGlet|access-date=2011-01-15}}

| website = {{URL|www.figlet.org}}

}}

FIGlet is a computer program that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters (see ASCII art). The name derives from "Frank, Ian and Glenn's letters".{{cite web|url=http://www.figlet.org/faq.html|title=FIGlet FAQ|access-date=2013-09-19}}

Being free software, FIGlet is commonly included as part of many Unix-like operating systems (Linux,{{cite book|chapter-url=http://dsl.org/cookbook/cookbook_20.html#SEC321|chapter=Text Fonts|title=The Linux Cookbook|first=Michael|last=Stutz|year=2001|access-date=2008-04-25|publisher=No Starch Press|isbn=1-886411-48-4|url-access=registration|url=https://archive.org/details/linuxcookbooktip00stut}} BSD, etc.) distributions, but it has been ported to other platforms as well. The official FIGlet FTP site includes precompiled ports for the Acorn, Amiga, Apple II, Atari ST, BeOS, Mac, MS-DOS, NeXTSTEP, OS/2, and Microsoft Windows, as well as a reimplementation in Perl (Text::FIGlet[https://metacpan.org/module/Text::FIGlet Text::FIGlet]).{{cite web|url=http://ftp.figlet.org/pub/figlet/program/|title=Official FIGlet FTP site|access-date=2008-04-25}} There are third-party reimplementations of FIGlet in Java{{cite web|url=http://www.rigaut.com/benoit/CERN/FigletJava/|title=Figlet Java|first=Benoît|last=Rigaut|year=1996|access-date=2008-04-25|archive-date=2008-05-09|archive-url=https://web.archive.org/web/20080509134946/http://www.rigaut.com/benoit/CERN/FigletJava/|url-status=dead}} (including one embedded in the JavE ASCII art editor), JavaScript,{{cite web|url=http://patorjk.com/software/taag/|title=TAAG|first=Pat|last=Gillespie|year=2006|access-date=2008-05-01|archive-url=https://web.archive.org/web/20120220130116/http://patorjk.com/software/taag/|archive-date=2012-02-20|url-status=dead}} PHP,{{cite web|url=http://www.phpclasses.org/phpfiglet|title=PHP Figlet|first=Lucas|last=Baltes|access-date=2008-04-25}}{{cite web|url=http://framework.zend.com/manual/en/zend.text.html#zend.text.figlet|title=Zend Framework – Zend_Text_Figlet Component|access-date=2013-10-29|archive-url=https://web.archive.org/web/20120822005633/http://framework.zend.com/manual/en/zend.text.html#zend.text.figlet|archive-date=2012-08-22|url-status=dead}} Python,{{cite web|url=https://pypi.python.org/pypi/pyfiglet/|title=pyfiglet|first=Christopher|last=Jones|year=2007|access-date=2014-11-27}} and Go.{{cite web |last1=Sampson |first1=Luke |title=GitHub - lukesampson/figlet: Figlet in Go. |url=https://github.com/lukesampson/figlet |website=Github |access-date=13 December 2018 |date=13 December 2018}} DuckDuckgo also has their own Figlet version, to be able to use it you need to type "Figlet [text]" and you can easily Copy & Paste everywhere{{Cite web |last=frostedKIVI |date=2020-03-23 |title=Duckduckgo has a built in FIGlet, how amazing is that? Possibly my favorite easter egg especially since i found it all by myself randomly |url=https://www.reddit.com/r/duckduckgo/comments/fnpq82/duckduckgo_has_a_built_in_figlet_how_amazing_is/?rdt=39682 |access-date=2025-03-15 |website=r/duckduckgo}}

Behavior

FIGlet can read from standard input or accept a message as part of the command line. It prints to standard output. Some common arguments (options) are:

  • -f to select a font file. (font files are available [http://www.figlet.org/fontdb.cgi here])
  • -d to change the directory for fonts.
  • -c centers the output.
  • -l left-aligns the output.
  • -r right-aligns the output.
  • -t sets the output width to the terminal width.
  • -w specifies a custom output width.
  • -k enables kerning, printing each letter of the message individually, instead of merged into the adjacent letters.

Sample usage

An example of output generated by FIGlet is shown below.

[user@hostname ~]$ figlet 7MO

__ ___ _ _ _ _

\ \ / (_) | _(_)_ __ ___ __| (_) __ _

\ \ /\ / /| | |/ / | '_ \ / _ \/ _` | |/ _` |

\ V V / | | <| | |_) | __/ (_| | | (_| |

\_/\_/ |_|_|\_\_| .__/ \___|\__,_|_|\__,_|

|_|

The following command:

[user@hostname ~]$ figlet -ct -f roman Wikipedia

generates this output:

oooooo oooooo oooo o8o oooo o8o .o8 o8o

`888. `888. .8' `"' `888 `"' "888 `"'

`888. .8888. .8' oooo 888 oooo oooo oo.ooooo. .ooooo. .oooo888 oooo .oooo.

`888 .8'`888. .8' `888 888 .8P' `888 888' `88b d88' `88b d88' `888 `888 `P )88b

`888.8' `888.8' 888 888888. 888 888 888 888ooo888 888 888 888 .oP"888

`888' `888' 888 888 `88b. 888 888 888 888 .o 888 888 888 d8( 888

`8' `8' o888o o888o o888o o888o 888bod8P' `Y8bod8P' `Y8bod88P" o888o `Y888""8o

888

o888o

The -ct options centers the text and makes it take up the full width of the terminal. The -f roman option specifies the 'roman' font file.

Font examples

=Invita=

__ __)

(, ) | / , /) , /) ,

| /| / (/_ __ _ _(/ _

|/ |/ _(_/(___(_/_)__(/_(_(__(_(_(_

/ | .-/

(_/

=Banner (same as [[Banner (Unix)|banner]] utility)=

  1. #
  2. # # # # # # ##### ###### ##### # ##
  3. # # # # # # # # # # # # # #
  4. # # # #### # # # ##### # # # # #
  5. # # # # # # ##### # # # # ######
  6. # # # # # # # # # # # # #

## ## # # # # # ###### ##### # # #

=Larry3d=

__ __ __ __

/\ \ __/\ \ __/\ \ __ /\ \ __

\ \ \/\ \ \ \/\_\ \ \/'\ /\_\ _____ __ \_\ \/\_\ __

\ \ \ \ \ \ \/\ \ \ , < \/\ \/\ '__`\ /'__`\ /'_` \/\ \ /'__`\

\ \ \_/ \_\ \ \ \ \ \\`\\ \ \ \ \L\ \/\ __//\ \L\ \ \ \/\ \L\.\_

\ `\___x___/\ \_\ \_\ \_\ \_\ \ ,__/\ \____\ \___,_\ \_\ \__/.\_\

'\/__//__/ \/_/\/_/\/_/\/_/\ \ \/ \/____/\/__,_ /\/_/\/__/\/_/

\ \_\

\/_/

FIGlet-based ASCII typefaces

Eric Olson's 2002 FIG typeface family is a series of OpenType fonts similar to the output of FIGlet.

TOIlet seeks to extend FIGlet to use colour text.{{cite web|url=http://caca.zoy.org/wiki/toilet|title=TOIlet|access-date=2010-01-29}} FIGlet supports TOIlet fonts as of version 2.2.4.

See also

{{Portal|Free and open-source software}}

References

{{Reflist|2}}