import matplotlib import matplotlib.font_manager as font_manager import glob the_files = font_manager.findSystemFonts(fontpaths=None) # Using the_files = font_manager.OSXInstalledFonts() produces the same results for font_name in ['Open Sans', 'Lucida Grande', 'Avenir', 'Arial']: print('') print('** ' + font_name) print("Names reported by font_manager for fonts in font_manager-found files with '" + font_name + "' in file name:") for the_file in the_files: if font_name.replace(' ', '').lower() in the_file.replace(' ', '').lower(): the_props = font_manager.FontProperties(fname=the_file) print "\t" + the_props.get_name(), print '\t\t', the_props._file print('') font_in_file_name = font_name.replace(' ', '') print("Files found through file system with '" + font_in_file_name + "' in file name:") for font_dir in ['/Users/olga/Library/Fonts/', '/Library/Fonts/', '/System/Library/Fonts/']: for file in glob.glob(font_dir + font_in_file_name + '*.*'): print("\t" + file) font = {'family': 'sans-serif', 'sans-serif': ['Open Sans', 'Lucida Grande', 'Avenir', 'Arial', 'sans-serif']} matplotlib.rc('font', **font) plt.plot((0,1), (0,1))