From 2035fe7fda8938ef279101d5fe85d0e4cddcbc9f Mon Sep 17 00:00:00 2001 From: Mark Sisson <5761292+marksisson@users.noreply.github.com> Date: Fri, 30 Jan 2026 14:57:07 -0600 Subject: [PATCH] feat(setup): search macOS font directories recursively Extend font lookup on macOS to scan subdirectories when the font is not found in the top-level font directories. Permission errors during traversal are silently ignored to avoid installation failures. --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 02e29ecc8..b30f18dbb 100755 --- a/setup.py +++ b/setup.py @@ -928,6 +928,12 @@ def add_builtin_fonts(args: Options) -> None: if os.path.exists(q): font_file = q break + for root, _, files in os.walk(candidate, onerror=lambda _: None): + if filename in files: + font_file = os.path.join(root, filename) + break + if font_file: + break elif is_windows: for candidate in ( os.path.expandvars(r'%userprofile%\AppData\Local\Microsoft\Windows\Fonts'),