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

Method find

src/pptx/text/fonts.py:18–25  ·  view source on GitHub ↗

Return the absolute path to an installed OpenType font. File is matched by `family_name` and the styles `is_bold` and `is_italic`.

(cls, family_name: str, is_bold: bool, is_italic: bool)

Source from the content-addressed store, hash-verified

16
17 @classmethod
18 def find(cls, family_name: str, is_bold: bool, is_italic: bool) -> str:
19 """Return the absolute path to an installed OpenType font.
20
21 File is matched by `family_name` and the styles `is_bold` and `is_italic`.
22 """
23 if cls._font_files is None:
24 cls._font_files = cls._installed_fonts()
25 return cls._font_files[(family_name, is_bold, is_italic)]
26
27 @classmethod
28 def _installed_fonts(cls):

Callers 15

next_partnameMethod · 0.80
_best_fit_font_sizeMethod · 0.80
get_child_elementMethod · 0.80
get_child_elementMethod · 0.80
first_child_found_inMethod · 0.80
txBodyMethod · 0.80
nspfxMethod · 0.80
getter_fixtureMethod · 0.80
getter_fixtureMethod · 0.80
getter_fixtureMethod · 0.80

Calls 1

_installed_fontsMethod · 0.80