mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
A Times New Roman the PDF doesn't embed, written as a Type 0 font with a CIDFontType2 descendant (TimesNewRoman,Bold, TimesNewRomanPSMT and the other faces) and no /ToUnicode, now goes through the rule of patch (76): each CID gives, through /CIDToGIDMap (ISO 32000-2 Table 115), a glyph index in the author's font, and the substitute draws that glyph by its name in the standard Macintosh order of the TrueType post table. Before, the CID was taken as one of the substitute's own glyph indexes, which ISO 32000-2 9.7.4.2 notes "are not defined consistently from one font to another", and the ameli.fr mutation form drew "Salarié(e) du régime général" as "Salari²*g+f w't²i lo g'ì²p²tcn". Times New Roman numbers its first 258 glyphs in that order: the same form's embedded Times New Roman subsets keep their glyph indexes, and 941 of their 942 /ToUnicode entries below 258 name that order's character. Times and Times New Roman MT Std are other fonts and keep the old path. Fixes #6449 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn