← 返回命令列表

Linux command

fc-pattern 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

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]

说明

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.

参数

-d, --default
Apply default substitutions.
-c, --config
Apply config substitutions.
--format _format_
Custom output format.

FAQ

What is the fc-pattern command used for?

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.

How do I run a basic fc-pattern example?

Run `fc-pattern "[pattern]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --default do in fc-pattern?

Apply default substitutions.