fc-list

list available fonts

TLDR

List all fonts
$ fc-list
List fonts matching pattern
$ fc-list : family style | sort
Find specific font
$ fc-list | grep -i "[arial]"
List monospace fonts
$ fc-list :spacing=mono family
Show font file paths
$ fc-list : file family
List fonts with specific style
$ fc-list :style=Bold
List fonts by language
$ fc-list :lang=[zh]

SYNOPSIS

fc-list [options] [pattern] [elements]

DESCRIPTION

fc-list lists fonts available to applications using fontconfig. It displays font family names, styles, file locations, and other properties.The command is essential for discovering installed fonts, finding font file paths, and verifying font installation. It queries the fontconfig database which caches font information.

PARAMETERS

-v, --verbose

Verbose output with all properties.
-f format
Custom output format.
-q, --quiet
Suppress normal output.
--version
Show version.
pattern
Font matching pattern.
elements
Properties to display: family, style, file, etc.

INSTALL

sudo apt install fontconfig
sudo dnf install fontconfig
sudo pacman -S fontconfig
sudo apk add fontconfig
sudo zypper install fontconfig
brew install fontconfig
nix profile install nixpkgs#fontconfig

CAVEATS

Output can be long; pipe to grep or sort. Font names may vary by language. Newly installed fonts need `fc-cache -fv`. Some applications cache fonts independently.

HISTORY

fc-list is part of fontconfig, created by Keith Packard around 2000 to provide system-wide font configuration for X11 and other systems. It replaced the older X font system with a more flexible, file-based approach.

SEE ALSO

fc-cache(1), fc-match(1), fc-query(1)