Return a dict mapping a font descriptor to its font file path, containing all the font files resident on the current machine. The font descriptor is a (family_name, is_bold, is_italic) 3-tuple.
(cls)
| 26 | |
| 27 | @classmethod |
| 28 | def _installed_fonts(cls): |
| 29 | """ |
| 30 | Return a dict mapping a font descriptor to its font file path, |
| 31 | containing all the font files resident on the current machine. The |
| 32 | font descriptor is a (family_name, is_bold, is_italic) 3-tuple. |
| 33 | """ |
| 34 | fonts = {} |
| 35 | for d in cls._font_directories(): |
| 36 | for key, path in cls._iter_font_files_in(d): |
| 37 | fonts[key] = path |
| 38 | return fonts |
| 39 | |
| 40 | @classmethod |
| 41 | def _font_directories(cls): |