MJN All Blog Cheatsheets Elasticsearch GCP JS LinuxBash Misc Notes Other ShortcutKeys / - Search

Home / Notes / ASCII Art Text


ASCII Art Text Generation Using figlet

The Linux utility figlet can be used to generate ASCII art text.

This list of available fonts can be found as follows:

> ls /usr/share/figlet/*.flf | sed 's/.*\///; s/\.flf$//'

Text can be generated as follows:

> echo "Hello World" | figlet -f <font-name>

Font Examples

We can run the following script to generate an example of each available font:

for f in $(ls /usr/share/figlet/*.flf | sed 's/.*\///; s/\.flf$//'); do 
    echo $f:
    echo "Hello World!" | figlet -f $f
done

Examples:

banner:

#     #                                #     #                             ###
#     # ###### #      #       ####     #  #  #  ####  #####  #      #####  ###
#     # #      #      #      #    #    #  #  # #    # #    # #      #    # ###
####### #####  #      #      #    #    #  #  # #    # #    # #      #    #  #
#     # #      #      #      #    #    #  #  # #    # #####  #      #    #  
#     # #      #      #      #    #    #  #  # #    # #   #  #      #    # ###
#     # ###### ###### ######  ####      ## ##   ####  #    # ###### #####  ###
                                                                            
big:
 _    _      _ _        __          __        _     _ _
| |  | |    | | |       \ \        / /       | |   | | |
| |__| | ___| | | ___    \ \  /\  / /__  _ __| | __| | |
|  __  |/ _ \ | |/ _ \    \ \/  \/ / _ \| '__| |/ _` | |
| |  | |  __/ | | (_) |    \  /\  / (_) | |  | | (_| |_|
|_|  |_|\___|_|_|\___/      \/  \/ \___/|_|  |_|\__,_(_)

block:

_|    _|            _|  _|               _|          _|                      _|        _|  _|
_|    _|    _|_|    _|  _|    _|_|       _|          _|    _|_|    _|  _|_|  _|    _|_|_|  _|
_|_|_|_|  _|_|_|_|  _|  _|  _|    _|     _|    _|    _|  _|    _|  _|_|      _|  _|    _|  _|
_|    _|  _|        _|  _|  _|    _|       _|  _|  _|    _|    _|  _|        _|  _|    _|
_|    _|    _|_|_|  _|  _|    _|_|           _|  _|        _|_|    _|        _|    _|_|_|  _|

bubble:
  _   _   _   _   _     _   _   _   _   _   _
 / \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \
( H | e | l | l | o ) ( W | o | r | l | d | ! )
 \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/

digital:

+-+-+-+-+-+ +-+-+-+-+-+-+
|H|e|l|l|o| |W|o|r|l|d|!|
+-+-+-+-+-+ +-+-+-+-+-+-+

ivrit:
 _     _ _        __        __        _ _      _   _
| | __| | |_ __ __\ \      / /   ___ | | | ___| | | |
| |/ _` | | '__/ _ \ \ /\ / /   / _ \| | |/ _ \ |_| |
|_| (_| | | | | (_) \ V  V /   | (_) | | |  __/  _  |
(_)\__,_|_|_|  \___/ \_/\_/     \___/|_|_|\___|_| |_|
                                                                            
lean:

    _/    _/            _/  _/               _/          _/                      _/        _/  _/
   _/    _/    _/_/    _/  _/    _/_/       _/          _/    _/_/    _/  _/_/  _/    _/_/_/  _/
  _/_/_/_/  _/_/_/_/  _/  _/  _/    _/     _/    _/    _/  _/    _/  _/_/      _/  _/    _/  _/
 _/    _/  _/        _/  _/  _/    _/       _/  _/  _/    _/    _/  _/        _/  _/    _/
_/    _/    _/_/_/  _/  _/    _/_/           _/  _/        _/_/    _/        _/    _/_/_/  _/

mini:

|_| _ || _  \    /_ ._| _||
| |(/_||(_)  \/\/(_)| |(_|o

script:

 ,          _   _          _                     _
/|   |     | | | |        (_|   |   |_/         | |    |  |
 |___|  _  | | | |  __      |   |   | __   ,_   | |  __|  |
 |   |\|/  |/  |/  /  \_    |   |   |/  \_/  |  |/  /  |  |
 |   |/|__/|__/|__/\__/      \_/ \_/ \__/    |_/|__/\_/|_/o

shadow:

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

slant:
    __  __     ____         _       __           __    ____
   / / / /__  / / /___     | |     / /___  _____/ /___/ / /
  / /_/ / _ \/ / / __ \    | | /| / / __ \/ ___/ / __  / /
 / __  /  __/ / / /_/ /    | |/ |/ / /_/ / /  / / /_/ /_/
/_/ /_/\___/_/_/\____/     |__/|__/\____/_/  /_/\__,_(_)

small:
 _  _     _ _      __      __       _    _ _
| || |___| | |___  \ \    / /__ _ _| |__| | |
| __ / -_) | / _ \  \ \/\/ / _ \ '_| / _` |_|
|_||_\___|_|_\___/   \_/\_/\___/_| |_\__,_(_)

smscript:
 ,
/|  |  _ |\ |\  _     (|  |  |_/_   ,_  |\  _|  |
 |--| |/ |/ |/ / \_    |  |  | / \_/  | |/ / |  |
 |  |)|_/|_/|_/\_/      \/ \/  \_/    |/|_/\/|_/o

smshadow:

 |  |      | |      \ \      /       |     | |
 __ |  -_) | |  _ \  \ \ \  / _ \  _||  _` |_|
_| _|\___|_|_|\___/   \_/\_/\___/_| _|\__,_|_)

smslant:
   __ __    ____       _      __         __   ____
  / // /__ / / /__    | | /| / /__  ____/ /__/ / /
 / _  / -_) / / _ \   | |/ |/ / _ \/ __/ / _  /_/
/_//_/\__/_/_/\___/   |__/|__/\___/_/ /_/\_,_(_)

standard:
 _   _      _ _        __        __         _     _ _
| | | | ___| | | ___   \ \      / /__  _ __| | __| | |
| |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` | |
|  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| |_|
|_| |_|\___|_|_|\___/     \_/\_/ \___/|_|  |_|\__,_(_)

term:
Hello World!

This page was generated by GitHub Pages. Page last modified: 25/04/17 11:26