mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 04:28:20 -06:00
hayro-interpret's map_code tried a symbolic font's cmap subtables in the order the font lists them, by platform ID, so Macintosh (1, 0) came before Windows (3, 0). ISO 32000-2 §9.6.5.4 gives (3, 0) first and (1, 0) only otherwise. SAS 9.4 embeds AMT fonts whose (1, 0) table is wrong, so "8" drew as "p", "+" as "V", and "1" and "%" not at all. The Windows (3, 0)/(3, 1) records are now tried first; Macintosh and Unicode ones still serve codes those leave out. The test font is built in memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>