← 返回命令列表

Linux command

fc-match 命令

文本

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

常用示例

Find best matching font

fc-match [pattern]

Match monospace font

fc-match monospace

Match with specific family

fc-match "DejaVu Sans"

Show verbose output

fc-match -v [pattern]

Show specific elements

fc-match --format "%{family}\n" [pattern]

Match all fonts

fc-match -a [pattern]

说明

fc-match matches fonts against fontconfig patterns and shows which font will be used for a given request. The tool is essential for debugging font configuration, understanding why certain fonts are selected, and verifying font substitution rules. When applications request a font, fontconfig uses a sophisticated matching algorithm considering family name, style, weight, and other properties. fc-match reveals the result of this matching process, helping diagnose font-related issues.

参数

-a, --all
Show all matching fonts.
-s, --sort
Sort output by priority.
-v, --verbose
Verbose output.
--format _format_
Format output string.

FAQ

What is the fc-match command used for?

fc-match matches fonts against fontconfig patterns and shows which font will be used for a given request. The tool is essential for debugging font configuration, understanding why certain fonts are selected, and verifying font substitution rules. When applications request a font, fontconfig uses a sophisticated matching algorithm considering family name, style, weight, and other properties. fc-match reveals the result of this matching process, helping diagnose font-related issues.

How do I run a basic fc-match example?

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

What does -a, --all do in fc-match?

Show all matching fonts.