From 856978f3cb169fde3a851ade1456e0a2ea7ded2d Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 6 Apr 2026 20:40:19 -0400 Subject: [PATCH] fix: use Arial Bold on macOS to avoid Helvetica.ttc rendering bugs in Pillow Made-with: Cursor --- src/cover.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cover.py b/src/cover.py index 0a6702c..456f655 100644 --- a/src/cover.py +++ b/src/cover.py @@ -16,6 +16,14 @@ def _get_font(size: int) -> ImageFont.FreeTypeFont: ) except OSError: pass + try: + return ImageFont.truetype("/System/Library/Fonts/Supplemental/Arial Bold.ttf", size) + except OSError: + pass + try: + return ImageFont.truetype("/Library/Fonts/Arial Bold.ttf", size) + except OSError: + pass try: return ImageFont.truetype("/System/Library/Fonts/Helvetica.ttc", size) except OSError: