MCPcopy Create free account
hub / github.com/scanny/python-pptx / _installed_fonts

Method _installed_fonts

src/pptx/text/fonts.py:28–38  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 2

findMethod · 0.80

Calls 2

_font_directoriesMethod · 0.80
_iter_font_files_inMethod · 0.80