def get_fontconfig_fonts(fontext='<STR_LIT>'):
try:<EOL><INDENT>import subprocess<EOL><DEDENT>except ImportError:<EOL><INDENT>return {}<EOL><DEDENT>fontext = get_fontext_synonyms(fontext)<EOL>fontfiles = {}<EOL>status, output = subprocess.getstatusoutput("<STR_LIT>")<EOL>if status == <NUM_LIT:0>:<EOL><INDENT>for line in output.split('<STR_LIT:\n>'):<EOL><INDENT>fname = line.split('<STR_LIT::>')[<NUM_LIT:0>]<EOL>if (os.path.splitext(fname)[<NUM_LIT:1>][<NUM_LIT:1>:] in fontext and<EOL>os.path.exists(fname)):<EOL><INDENT>fontfiles[fname] = <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>return fontfiles<EOL>
Grab a list of all the fonts that are being tracked by fontconfig
by making a system call to ``fc-list``.  This is an easy way to
grab all of the fonts the user wants to be made available to
applications, without needing knowing where all of them reside.