Skip to content

Huirey/fzfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fzfont - An interactive font selector for terminal lovers.

fzfont banner

fzfont is a single script that lets you browse, preview, and select fonts installed on your system using fzf, fontconfig, and chafa.

Live preview

fzfont terminal demo

Features

  • 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.

Requirements

  • bash
  • fc-list
  • fc-match
  • fc-query
  • fzf
  • magick (ImageMagick)
  • chafa

Optional clipboard tools:

  • wl-copy
  • xclip
  • pbcopy

Install

git clone https://github.com/Huirey/fzfont.git
cd fzfont
chmod +x fzfont

Usage

./fzfont
./fzfont --help

Examples:

# 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

Environment Variables

  • FONT_SAMPLE_TEXT
  • POINTSIZE
  • FAMILY_TAG
  • PREVIEW_IMAGE_POS
  • COPY_ON_SELECT
  • PREVIEW_COLOR_MODE
  • PREVIEW_BOLD
  • PREVIEW_FILL

License

MIT

About

fzfont - An interactive font selector for terminal lovers.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages