Skip to content

Instantly share code, notes, and snippets.

@MicahElliott
Created January 13, 2012 22:10
Show Gist options
  • Save MicahElliott/1608995 to your computer and use it in GitHub Desktop.
Save MicahElliott/1608995 to your computer and use it in GitHub Desktop.
Display all the possible toilet fonts for a string.
banner
### ###
# # # # # ###### ## #### #### # # ###
# # # # # # # # # # # # # ###
# # # #### ##### # # #### # # # #
# # # # # # ###### # # # #
# # # # # # # # # # # # # # ###
### ###### # # # ###### # # #### #### # # ###
big
_____ _ _ _ _ _ _
|_ _| | (_) | (_|_) |
| | | |_| | _____ __ _ ___ ___ _ _| |
| | | | | |/ / _ \ / _` / __|/ __| | | |
_| |_ | | | < __/ | (_| \__ \ (__| | |_|
|_____| |_|_|_|\_\___| \__,_|___/\___|_|_(_)
block
_|_|_| _| _| _| _|
_| _| _| _| _|_| _|_|_| _|_|_| _|_|_|
_| _| _| _|_| _|_|_|_| _| _| _|_| _| _|
_| _| _| _| _| _| _| _| _|_| _| _|
_|_|_| _| _| _| _| _|_|_| _|_|_| _|_|_| _|_|_| _|
_| _|
_|
_| _|
_|
_| _|
bubble
_ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( I ) ( l | i | k | e ) ( a | s | c | i | i | ! )
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
digital
+-+ +-+-+-+-+ +-+-+-+-+-+-+
|I| |l|i|k|e| |a|s|c|i|i|!|
+-+ +-+-+-+-+ +-+-+-+-+-+-+
ivrit
___ _ _ _ _ _ _
|_ _| | (_) | _____ __ _ ___ ___(_|_) |
| | | | | |/ / _ \ / _` / __|/ __| | | |
| | | | | < __/ | (_| \__ \ (__| | |_|
|___| |_|_|_|\_\___| \__,_|___/\___|_|_(_)
lean
_/_/_/ _/ _/ _/
_/ _/ _/ _/ _/_/ _/_/_/ _/_/_/
_/ _/ _/ _/_/ _/_/_/_/ _/ _/ _/_/
_/ _/ _/ _/ _/ _/ _/ _/ _/_/
_/_/_/ _/ _/ _/ _/ _/_/_/ _/_/_/ _/_/_/
_/ _/ _/
_/_/_/ _/
_/ _/ _/ _/
_/ _/ _/
_/_/_/ _/ _/ _/
mini
___
| | o | _ _. _ _ o o |
_|_ | | |< (/_ (_| _> (_ | | o
mnemonic
I&SPlike&SPascii!
script
_ _ _
| | | | o | | o o |
| | | | | | _ __, , __ |
_ |/ |/ | |/_) |/ / | / \_/ | | |
\_/\/ |__/|_/| \_/|__/ \_/|_/ \/ \___/|_/|_/o
shadow
_ _| | _) | _) _) |
| | | | / _ \ _` | __| __| | | |
| | | < __/ ( | \__ \ ( | | _|
___| _| _| _|\_\ \___| \__,_| ____/ \___| _| _| _)
slant
____ ___ __ _ _ __
/ _/ / (_) /_____ ____ ___________(_|_) /
/ / / / / //_/ _ \ / __ `/ ___/ ___/ / / /
_/ / / / / ,< / __/ / /_/ (__ ) /__/ / /_/
/___/ /_/_/_/|_|\___/ \__,_/____/\___/_/_(_)
small
___ _ _ _ _ _ _
|_ _| | (_) |_____ __ _ ___ __(_|_) |
| | | | | / / -_) / _` (_-</ _| | |_|
|___| |_|_|_\_\___| \__,_/__/\__|_|_(_)
smscript
|\ |\ o |) _ _, , _ o o |
_ |/ |/ | |/) |/ / | / \_/ | | |
\_/\/ |_/|/| \/|_/ \/|_/ \/ \__/|/|/o
smshadow
_ _| | _) | _) _) |
| | | | / -_) _` | (_-< _| | | _|
___| _| _| _\_\ \___| \__,_| ___/ \__| _| _| _)
smslant
____ ___ __ _ _ __
/ _/ / (_) /_____ ___ ____ ____(_|_) /
_/ / / / / '_/ -_) / _ `(_-</ __/ / /_/
/___/ /_/_/_/\_\\__/ \_,_/___/\__/_/_(_)
standard
___ _ _ _ _ _ _
|_ _| | (_) | _____ __ _ ___ ___(_|_) |
| | | | | |/ / _ \ / _` / __|/ __| | | |
| | | | | < __/ | (_| \__ \ (__| | |_|
|___| |_|_|_|\_\___| \__,_|___/\___|_|_(_)
term
I like ascii!
#! /bin/zsh
# Display all the possible toilet fonts for a string.
#
# “mini” and “script” are especially cute.
# toilet: http://caca.zoy.org/wiki/toilet
# Toilet is “banner”-like tool. Another is figlet, but there may be
# others.
#
# You might want to do things with color options, too.
msg=${1?Must provide msg string}
for f in /usr/share/figlet/*.[tf]lf; do
font=$f:r:t
print "\n$font"
toilet -f $font $msg
done
@solosuper
Copy link

This is great, thanks! Here's a quick oneliner just to show all fonts:

for f in /usr/share/figlet/*.[tf]lf; do toilet {,-f}$f:r:t; done

@wsadza
Copy link

wsadza commented Jul 9, 2022

Grab all the fonts and use it to display SAMPLE

var=$(ls /usr/share/figlet/ | sed '/-/d' | sed 's/\..*$//g') && for i in ${var[@]}; do echo -e "\n\n$i"; toilet -f $i SAMPLE; done

@joaociocca
Copy link

Grab all the fonts and use it to display SAMPLE

var=$(ls /usr/share/figlet/ | sed '/-/d' | sed 's/\..*$//g') && for i in ${var[@]}; do echo -e "\n\n$i"; toilet -f $i SAMPLE; done

zsh doesn't like it =p

image

@s3rgeym
Copy link

s3rgeym commented Feb 16, 2024

Grab all the fonts and use it to display SAMPLE
var=$(ls /usr/share/figlet/ | sed '/-/d' | sed 's/\..*$//g') && for i in ${var[@]}; do echo -e "\n\n$i"; toilet -f $i SAMPLE; done

zsh doesn't like it =p

image

for font in $(ls -1 /usr/share/figlet/ | sed -r '/_/d; s/\..*//'); do echo $font; toilet -f "$font" "RUSSIA"; done

image

@joaociocca
Copy link

for font in $(ls -1 /usr/share/figlet/ | sed -r '/_/d; s/\..*//'); do echo $font; toilet -f "$font" "RUSSIA"; done

I'd kiss you if I could, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment