FC-QUERY(1)

🌸 NAME 🌸

fc-query(1) has entered the chat, and it’s all about one thing: fc-query β€” query font files. That’s the vibe, bestie. πŸ¦‹


✨ SYNOPSIS ✨

fc-query [ -Vh ]

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

πŸŽ€ DESCRIPTION πŸŽ€

So fc-query queries your font-file(s) using the normal fontconfig rules, and it prints out the font pattern for each face it finds. πŸ’…

If --index is given, only one face of each file is queried. Otherwise, all faces are queried. No cap, that’s the whole flow. ✨


πŸ’– OPTIONS πŸ’–

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

  • -b, --ignore-blanks β€” ignore blanks to compute languages. 🫢
  • -i index, --index index β€” only query face indexed index of each file. πŸ”
  • -f format, --format format β€” format output according to the format specifier format. ✨
  • -V, --version β€” show version of the program and exit. πŸ‘‹
  • -h, --help β€” show summary of options. πŸ“œ
  • font-file β€” query font-file for font faces. πŸ’–

🫢 RETURN CODES 🫢

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


🌈 SEE ALSO 🌈

The fontconfig user’s guide: <URL:https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-user.html>


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was updated by Behdad Esfahbod <behdad@behdad.org>. Iconic. πŸ‘‘


πŸ’– Cute sign-off tea: the footer says Aug 13, 2008 and FC-QUERY(1). That’s the date + source/version vibe, bestie. Slay. πŸŽ€
πŸ“¦ where this page comes from