mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-26 19:19:10 -06:00
ISO 32000-2 9.3.6: for a Type 3 font, modes 3 and 7 shall not be rendered, the other modes render the glyph descriptions, and modes 4 to 7 add nothing to the clipping path. Vendored hayro-interpret patch 42 drew every mode but 3 filled, so 7 Tr painted the glyphs in the fill colour (black by default) wherever a following fill did not cover them. Patch 64: show_glyph keeps mode 7 for Type 3 glyphs and reports them as clipping text (GlyphDrawMode::Clip, painting nothing, kept by extraction), and clip_glyph's Type 3 arm is a deliberate no-op. Modes 0-2 and 4-6 still render filled. Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>