FIGlet
Encyclopedia
FIGlet is a computer program
Computer program
A computer program is a sequence of instructions written to perform a specified task with a computer. A computer requires programs to function, typically executing the program's instructions in a central processor. The program has an executable form that the computer can use directly to execute...

 that generates text banner
Banner
A banner is a flag or other piece of cloth bearing a symbol, logo, slogan or other message. Banner-making is an ancient craft.The word derives from late Latin bandum, a cloth out of which a flag is made...

s, in a variety of typeface
Typeface
In typography, a typeface is the artistic representation or interpretation of characters; it is the way the type looks. Each type is designed and there are thousands of different typefaces in existence, with new ones being developed constantly....

s, composed of letter
Letter (alphabet)
A letter is a grapheme in an alphabetic system of writing, such as the Greek alphabet and its descendants. Letters compose phonemes and each phoneme represents a phone in the spoken form of the language....

s made up of conglomerations of smaller ASCII
ASCII
The American Standard Code for Information Interchange is a character-encoding scheme based on the ordering of the English alphabet. ASCII codes represent text in computers, communications equipment, and other devices that use text...

 characters (see ASCII art
ASCII art
ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable characters defined by the ASCII Standard from 1963 and ASCII compliant character sets with proprietary extended characters...

).

Being free software
Free software
Free software, software libre or libre software is software that can be used, studied, and modified without restriction, and which can be copied and redistributed in modified or unmodified form either without restriction, or with restrictions that only ensure that further recipients can also do...

, FIGlet is commonly included as part of many Unix-like
Unix-like
A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....

 operating system (Linux
Linux
Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds...

, BSD, etc.) distributions, but it has been ported to other platforms as well. The official FIGlet FTP site includes precompiled ports for the Acorn
Acorn Archimedes
The Acorn Archimedes was Acorn Computers Ltd's first general purpose home computer to be based on their own ARM architecture.Using a RISC design with a 32-bit CPU, at its launch in June 1987, the Archimedes was stated as running at 4 MIPS, with a claim of 18 MIPS during tests.The name is commonly...

, Amiga, Apple II
Apple II
The Apple II is an 8-bit home computer, one of the first highly successful mass-produced microcomputer products, designed primarily by Steve Wozniak, manufactured by Apple Computer and introduced in 1977...

, Atari ST
Atari ST
The Atari ST is a home/personal computer that was released by Atari Corporation in 1985 and commercially available from that summer into the early 1990s. The "ST" officially stands for "Sixteen/Thirty-two", which referred to the Motorola 68000's 16-bit external bus and 32-bit internals...

, BeOS
BeOS
BeOS is an operating system for personal computers which began development by Be Inc. in 1991. It was first written to run on BeBox hardware. BeOS was optimized for digital media work and was written to take advantage of modern hardware facilities such as symmetric multiprocessing by utilizing...

, Macintosh, MS-DOS
MS-DOS
MS-DOS is an operating system for x86-based personal computers. It was the most commonly used member of the DOS family of operating systems, and was the main operating system for IBM PC compatible personal computers during the 1980s to the mid 1990s, until it was gradually superseded by operating...

, NextStep
NEXTSTEP
NeXTSTEP was the object-oriented, multitasking operating system developed by NeXT Computer to run on its range of proprietary workstation computers, such as the NeXTcube...

, OS/2
OS/2
OS/2 is a computer operating system, initially created by Microsoft and IBM, then later developed by IBM exclusively. The name stands for "Operating System/2," because it was introduced as part of the same generation change release as IBM's "Personal System/2 " line of second-generation personal...

, and Windows
Microsoft Windows
Microsoft Windows is a series of operating systems produced by Microsoft.Microsoft introduced an operating environment named Windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces . Microsoft Windows came to dominate the world's personal...

 platforms, as well as a reimplementation in Perl
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular...

 (Text::FIGlet). There are third-party reimplementations of FIGLet in Java
Java (programming language)
Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities...

 (including one embedded in the JavE ASCII art editor), JavaScript
JavaScript
JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles....

 and PHP
PHP
PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document...

. FIGlet was featured as a Debian
Debian
Debian is a computer operating system composed of software packages released as free and open source software primarily under the GNU General Public License along with other free software licenses. Debian GNU/Linux, which includes the GNU OS tools and Linux kernel, is a popular and influential...

 Package of the Day in 2007.

Behavior

FIGlet can read from standard input or accept a message as part of the command line. It prints to standard output
Standard streams
In Unix and Unix-like operating systems , as well as certain programming language interfaces, the standard streams are preconnected input and output channels between a computer program and its environment when it begins execution...

. Some common arguments (options) are:
  • -f to select a font
    Font
    In typography, a font is traditionally defined as a quantity of sorts composing a complete character set of a single size and style of a particular typeface...

     file.
  • -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
    Computer terminal
    A computer terminal is an electronic or electromechanical hardware device that is used for entering data into, and displaying data from, a computer or a computing system...

     width.
  • -w specifies a custom output width.
  • -k enables kerning
    Kerning
    In typography, kerning is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result. Kerning is the adjustment of the space between individual letter forms vs. tracking which is the uniform adjustment of spacing applied over a...

    , 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.

__ ___ _ _ _ _
\ \ / (_) | _(_)_ __ ___ __| (_) __ _
\ \ /\ / /| | |/ / | '_ \ / _ \/ _` | |/ _` |
\ V V / | | <| | |_) | __/ (_| | | (_| |
\_/\_/ |_|_|\_\_| .__/ \___|\__,_|_|\__,_|
|_|


The following code:

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.

FIGlet based ASCII typefaces

Eric Olson's 2002 FIG
FIG Script
FIG Script is a script typeface designed by Eric Olson in 2002 for Process Type Foundry, a digital foundry which he co-founded.The name FIG is an acronym for "Frank , Ian , and Glenn who collaborated in the development of the FIGlet computer program developed to generates text banners, in a...

 typeface family is a series of OpenType
OpenType
OpenType is a format for scalable computer fonts. It was built on its predecessor TrueType, retaining TrueType's basic structure and adding many intricate data structures for prescribing typographic behavior...

fonts similar to the output of FIGlet.

TOIlet seeks to extend FIGlet to use colour text. FIGlet supports TOIlet fonts as of version 2.2.4.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK