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