LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

fc-pattern

parse and display fontconfig patterns

TLDR

Parse font pattern
$ fc-pattern "[pattern]"
copy
Show default pattern
$ fc-pattern --default [pattern]
copy
Configure pattern
$ fc-pattern --config [pattern]
copy
Custom format output
$ fc-pattern --format "%{family}" [pattern]
copy

SYNOPSIS

fc-pattern [options] [pattern]

DESCRIPTION

fc-pattern parses and displays fontconfig patterns, showing how fontconfig interprets font matching requests. The tool is useful for debugging font configuration and understanding pattern syntax.Fontconfig patterns specify desired font properties like family, style, weight, and size. fc-pattern reveals how these patterns are normalized and what substitutions are applied by the configuration.

PARAMETERS

-d, --default

Apply default substitutions.
-c, --config
Apply config substitutions.
-f, --format format
Custom output format.

INSTALL

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

CAVEATS

Pattern syntax can be complex. Output format requires understanding fontconfig internals. Primarily useful for debugging rather than regular font management.

SEE ALSO

RESOURCES

Copied to clipboard
Kai