mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-06-10 23:17:00 -04:00
test_gray_mask_ocrs_to_text loaded DejaVu, which only exists on the Linux CI runners; the OSError fallback hardcoded a Linux-only path, so the test failed with "cannot open resource" on macOS and Windows. Load the bundled ocrmypdf.data/NotoSans-Regular.ttf via importlib.resources instead, which is guaranteed present on every platform.