(path: str, size: int)
| 72 | |
| 73 | |
| 74 | def font(path: str, size: int) -> ImageFont.FreeTypeFont: |
| 75 | try: |
| 76 | return ImageFont.truetype(path, size) |
| 77 | except OSError: |
| 78 | return ImageFont.load_default() |
| 79 | |
| 80 | |
| 81 | F_TITLE = font(BOLD, 42) |
no outgoing calls
no test coverage detected