(path: str, size: int)
| 126 | |
| 127 | |
| 128 | def load_font(path: str, size: int) -> ImageFont.FreeTypeFont: |
| 129 | try: |
| 130 | return ImageFont.truetype(path, size) |
| 131 | except OSError: |
| 132 | return ImageFont.truetype(r"C:\Windows\Fonts\arial.ttf", size) |
| 133 | |
| 134 | |
| 135 | F_TITLE = load_font(BOLD_ITALIC, 36) |
no outgoing calls
no test coverage detected