(path: str, size: int)
| 56 | |
| 57 | |
| 58 | def load_font(path: str, size: int) -> ImageFont.FreeTypeFont: |
| 59 | try: |
| 60 | return ImageFont.truetype(path, size) |
| 61 | except OSError: |
| 62 | return ImageFont.load_default() |
| 63 | |
| 64 | |
| 65 | F_AXIS = load_font(BOLD, 28) |
no outgoing calls
no test coverage detected