Skip to content

alejaalvar/fontpick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

  __              _         _      _
 / _| ___  _ __ | |_ _ __ (_) ___| | __
| |_ / _ \| '_ \| __| '_ \| |/ __| |/ /
|  _| (_) | | | | |_| |_) | | (__|   <
|_|  \___/|_| |_|\__| .__/|_|\___|_|\_\
                     |_|

fontpick

Ever find yourself digging through /usr/share/figlet just to remember what fonts are available? Or running the same toilet one-liner over and over to preview something? That's what inspired this — a simple script to list fonts and preview them without having to remember anything.

Dependencies

You'll need at least one of:

# Ubuntu/Debian
sudo apt install figlet toilet

# macOS
brew install figlet toilet

Installation

git clone https://github.com/alejandroalvarado/fontpick.git
cd fontpick
chmod +x fontpick.sh

Optionally move it somewhere on your $PATH so you can call it from anywhere:

mv fontpick.sh ~/.local/bin/fontpick

Usage

fontpick -p <figlet|toilet> <command> [options]

List all available fonts

fontpick -p figlet list
fontpick -p toilet list

Preview a font with your own text

fontpick -p figlet preview -f slant -t "hello"
fontpick -p toilet preview -f block -t "NIX-chat"

Show help

fontpick -h

Example

$ fontpick -p toilet preview -f block -t "NIX-chat"
Font: block
------------------------
███╗   ██╗██╗██╗  ██╗      ██████╗██╗  ██╗ █████╗ ████████╗
████╗  ██║██║╚██╗██╔╝     ██╔════╝██║  ██║██╔══██╗╚══██╔══╝
██╔██╗ ██║██║ ╚███╔╝      ██║     ███████║███████║   ██║
██║╚██╗██║██║ ██╔██╗      ██║     ██╔══██║██╔══██║   ██║
██║ ╚████║██║██╔╝ ██╗     ╚██████╗██║  ██║██║  ██║   ██║
╚═╝  ╚═══╝╚═╝╚═╝  ╚═╝      ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝

Options

Flag Description
-p Utility to use (figlet or toilet)
-f Font name (required for preview)
-t Text to render (required for preview)
-h Show help

License

MIT — see LICENSE for details.


Made by Alejandro Alvarado in collaboration with Claude

About

A lightweight font browser for figlet and toilet.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages