Created
January 13, 2012 22:10
-
-
Save MicahElliott/1608995 to your computer and use it in GitHub Desktop.
Display all the possible toilet fonts for a string.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
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
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
for font in $(ls -1 /usr/share/figlet/ | sed -r '/_/d; s/\..*//'); do echo $font; toilet -f "$font" "RUSSIA"; done
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
This is great, thanks! Here's a quick oneliner just to show all fonts: