mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
A Type 3 font now keeps each glyph procedure it decoded, so a glyph drawn many times isn't inflated again for every copy. A real file uses a one-glyph Type 3 font as a fill pattern and draws that glyph about 650,000 times on a page; it rendered in 11.2 s and now in 5.9 s, pixel for pixel the same. A procedure over 64 KiB isn't kept, and the fonts of one InterpreterCache keep at most 32 MiB together, as fonts live as long as the cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn