fc-pattern
parse and display fontconfig patterns
TLDR
Parse font pattern
$ fc-pattern "[pattern]"
Show default pattern$ fc-pattern --default [pattern]
Configure pattern$ fc-pattern --config [pattern]
Custom format output$ fc-pattern --format "%{family}" [pattern]
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.--format format
Custom output format.
CAVEATS
Pattern syntax can be complex. Output format requires understanding fontconfig internals. Primarily useful for debugging rather than regular font management.
