#include <fontconfig.h>
FcStrList * FcConfigGetFontDirs (FcConfig *config);
Returns the list of font directories in config. This includes the configured font directories along with any directories below those in the filesystem.
Fontconfig version 2.3.2