Files
pdfcraft/parity
SventurboandClaude Opus 5.5 9aeab4b8a3 M2: a non-embedded Arial draws the glyphs its codes name (#5889)
Word and PDFMaker write an Arial they don't embed as a Type 0 CIDFontType2
with Identity-H, often without /ToUnicode, so each code is a glyph index in
the author's Arial. hayro drew such a font with the standard CFF substitute
and, with no Unicode route, took each code as one of the substitute's own
glyph indexes: "Low Power" drew as "@ck 'Dck Yf".

Arial numbers its first 258 glyphs in the standard Macintosh order of the
TrueType post table (L is 47, o 82, w 90). For a non-embedded CIDFontType2
whose descendant /BaseFont is one of Arial's four faces, and whose CIDs are
not of an Adobe character collection, the CID is now taken through its
/CIDToGIDMap to that order's glyph name, and the substitute draws its glyph
of that name (.notdef when it has none). Arial Narrow, Black, Unicode MS
and Rounded, and CIDFontType0 fonts, keep the old path. The names come from
read-fonts' post::DEFAULT_GLYPH_NAMES, already in the tree through skrifa.

Vendored hayro-interpret patch 76.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 13:41:24 +01:00
..