LinuxCommandLibrary

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

SEE ALSO

fc-match(1), fc-list(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community