(path: str, size: int)
| 54 | |
| 55 | |
| 56 | def load_font(path: str, size: int) -> ImageFont.FreeTypeFont: |
| 57 | try: |
| 58 | return ImageFont.truetype(path, size) |
| 59 | except OSError: |
| 60 | return ImageFont.truetype(r"C:\Windows\Fonts\arial.ttf", size) |
| 61 | |
| 62 | |
| 63 | F_TITLE = load_font(BOLD, 43) |
no outgoing calls
no test coverage detected