fig is a modern interactive tool for rendering text as ASCII using FIGlet fonts. It provides a traditional CLI for quick rendering and an interactive TUI for browsing and previewing fonts.
- Interactive TUI — displays live previews
- Copy to clipboard — copy selected preview
- Add to favorites — favorite fonts show up first
- Supports 300 FIGlet Fonts
From source
go run cmd/main.gofig Hello
fig -f slant "Hello"
echo "Hello" | fig
echo "Hello" | fig -f slant -c, --center Center text in terminal
-f, --font string Specify a font, default is standard (default "standard")
-h, --help help for fig
-l, --list-fonts List all available fonts
-r, --right Right align text in terminal
-v, --version version for figfigPress ? to show a list of available keymaps:
| Key | Description |
|---|---|
| Enter | Read comments |
| / | Filter fonts |
| Tab | Change to next category |
| Shift+Tab | Change to previous category |
| i | Modify font preview text |
| c | Copy selection to clipboard |
| f | Add to / remove from favorites |
| q | Quit |
| g | Jump to the start |
| G | Jump to the end |
fig uses:
- Bubbletea for the TUI
- Lipgloss for styling
- Bubbles for UI components
- Cobra for the CLI
- Figlet Fonts borrowed from xero/fonts
