Linux Commands Examples

A great documentation place for Linux commands


query font files

see also : fc-scan - fc-cat - fc-cache - fc-list - fc-match - fc-pattern


fc-query [ -Vh ]

[ [ -i index ] [ --index index ] ] [ [ -f format ] [ --format format ] ] [ --version ] [ --help ] font-file...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


fc-query queries font-file(s) using the normal fontconfig rules and prints out font pattern for each face found. If --index is given, only one face of each file is queried, otherwise all faces are queried.


This program follows the usual GNU command line syntax, with long options starting with two dashes (’-’). A summary of options is included below.


Only query face indexed index of each file.


Format output according to the format specifier format.


Show version of the program and exit.


Show summary of options.


Query font-file for font faces.

return codes

fc-query returns error code 0 for successful parsing, or 1 if any errors occured or if at least one font face could not be opened.

see also

fc-scan FcFreeTypeQuery FcPatternFormat fc-cat fc-cache fc-list fc-match fc-pattern

The fontconfig user’s guide, in HTML format: /usr/share/doc/fontconfig/fontconfig-user.html.


This manual page was updated by Behdad Esfahbod <behdad[:at:]behdad[:dot:]org>.

How can this site be more helpful to YOU ?

give  feedback