fc-query: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/fc-query - from package: fontconfig

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/fc-query - from package: fontconfig

You may install the required package with command apt-get install {package}
Error in other languages:
fc-query: bevel nie gevind nie
fc-query: comandă negăsită
fc-query: comando não encontrado
fc-query: commande introuvable
fc-query: command not found
fc-query: käsku ei ole
fc-query: không tìm thấy lệnh
fc-query: komanda nerasta
fc-query: Kommando nicht gefunden.
fc-query: kommandot finns inte
fc-query: komut yok
fc-query: nie znaleziono polecenia
fc-query: níor aimsíodh an t-ordú
fc-query: no se encontró la orden
fc-query: no s'ha trobat l'ordre
fc-query: opdracht niet gevonden
fc-query: parancs nem található
fc-query: perintah tidak ditemukan
fc-query: príkaz nenájdený
fc-query: příkaz nenalezen
fc-query: команда не найдена
fc-query: командата не е открита
fc-query: 命令找不到
fc-query: コマンドが見つかりません