Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::font_manager::win32FontDirectory (  ) 

Return the user-specified font directory for Win32.

Definition at line 85 of file font_manager.py.

00085                         :
    """Return the user-specified font directory for Win32."""

    try:
        import _winreg
    except ImportError:
        return os.path.join(os.environ['WINDIR'], 'Fonts')
    else:
        user = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, MSFolders)
        try:
            return _winreg.QueryValueEx(user, 'Fonts')[0]
        finally:
            _winreg.CloseKey(user)
    return None

def win32InstalledFonts(directory=None, fontext='ttf'):


Generated by  Doxygen 1.6.0   Back to index