fzfont is a single script that lets you browse, preview, and select fonts installed on your system using fzf, fontconfig, and chafa.
- Show both font family entries and full face entries in one searchable list.
- Render live preview text for the currently selected font in terminal.
- Display metadata for the resolved face.
- Copy selection to clipboard.
- bash
- fc-list
- fc-match
- fc-query
- fzf
- magick (ImageMagick)
- chafa
Optional clipboard tools:
- wl-copy
- xclip
- pbcopy
git clone https://github.com/Huirey/fzfont.git
cd fzfont
chmod +x fzfont./fzfont
./fzfont --helpExamples:
# custom preview text
./fzfont --text "你好, Hello, 123"
# larger preview text size
./fzfont --pointsize 64
# keep selection only (no clipboard copy)
./fzfont --no-copy
# put image below metadata
./fzfont --preview-image-pos bottom- FONT_SAMPLE_TEXT
- POINTSIZE
- FAMILY_TAG
- PREVIEW_IMAGE_POS
- COPY_ON_SELECT
- PREVIEW_COLOR_MODE
- PREVIEW_BOLD
- PREVIEW_FILL
MIT

