mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 04:28:20 -06:00
A Type1 font whose FontFile3 has subtype /OpenType (ISO 32000-2 §9.9) keeps its CFF program in the `CFF ` table of an OpenType wrapper. CffFontBlob::new rejected the wrapper, so the font fell back to the standard-font stand-in and the text drew in the wrong face and weight. The CFF table is now taken from the wrapper, as composite fonts already do (hayro-interpret patch (69)). The test wraps the renderer's bundled CFF program in a one-table OTTO directory at run time (no font file added) and requires the wrapped and bare programs to give identical pixels; it fails with the fix reverted. A wrapper without a `CFF ` table still draws, with the stand-in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9