mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:47:22 -06:00
UniJIS-UCS2-HW-H maps code 0x0020 to CID 231 / U+2002. The OpenType substitute for a non-embedded Japanese CID font lacks that glyph, so .notdef boxes were drawn. Type0Font::map_via_unicode now falls back to the substitute's ordinary-space glyph for explicit spacing characters its charmap lacks. Native and variation-selector glyphs keep priority; PDF advances and Unicode text are unchanged. Fixes #3601. Co-Authored-By: Claude <noreply@anthropic.com>