mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 18:17:44 -06:00
Vendored hayro-interpret refuses an embedded font whose `post` table version isn't 1.0, 2.0, 2.5 or 3.0 (a guard from pdf.js issue 9462). ScanSoft PDF Create! writes the version of every font it embeds with its 16-bit halves swapped (`00 00 00 03` for 3.0), so those fonts were refused and their text drawn with a substitute: Hebrew came out as Latin look-alikes or not at all. 1.0, 2.0 and 3.0 with swapped halves are now accepted too; any other unknown version is still refused. PdfCraft patch (38) in vendor/README.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz