mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
The fallback to the glyph procedures' d0/d1 widths keeps such a page readable, but ISO 32000-2 Table 110 requires /Widths in a Type 3 font, so the reader should also be told the font is malformed. Selecting a Type 3 font without /Widths (or /FirstChar, /LastChar) now reports InterpreterWarning::Type3WidthsMissing, surfaced once per page as RenderWarning::Type3WidthsMissing: `pdfcraft-cli render` prints it and the automation render tools list it with the page's other warnings. Test: raster::tests::type3_proc_widths::a_type3_font_without_widths_is_reported (fails with the report switched off). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA