Logo Search packages:      
Sourcecode: matplotlib version File versions

def matplotlib::font_manager::OSXInstalledFonts (   directory = None,
  fontext = 'ttf' 
)

Get list of font files on OS X - ignores font suffix by default

Definition at line 178 of file font_manager.py.

00178                                                     :
    """Get list of font files on OS X - ignores font suffix by default"""
    if directory is None:
        directory = OSXFontDirectory()

    fontext = get_fontext_synonyms(fontext)

    files = []
    for path in directory:
        if fontext is None:
            files.extend(glob.glob(os.path.join(path,'*')))
        else:
            for ext in fontext:
                files.extend(glob.glob(os.path.join(path, '*.'+ext)))
                files.extend(glob.glob(os.path.join(path, '*.'+ext.upper())))
    return files


def x11FontDirectory():


Generated by  Doxygen 1.6.0   Back to index