def list_all_sysfonts():
 filepath = []
 searchpath = list(set((TTFSearchPath + rl_config.TTFSearchPath)))
 for dirname in searchpath:
  for filename in glob.glob(os.path.join(os.path.expanduser(dirname), '*.[Tt][Tt][FfCc]')):
   filepath.append(filename)
 return filepath

def list_all_sysfonts ( ) : filepath = [ ] searchpath = list ( set ( ( TTFSearchPath + rl_config . TTFSearchPath ) ) ) for dirname in searchpath : for filename in glob . glob ( os . path . join ( os . path . expanduser ( dirname ) , '*.[Tt][Tt][FfCc]' ) ) : filepath . append ( filename ) return filepath
this function returns list of font directories of system .