Files
pdfcraft/crates/render
mtlcl410andClaude Opus 5.5 427c942aad fix(render): a Type 3 glyph's kept procedure holds the page's content budget too
CodeRabbit on #6409:
- a kept procedure holds its bytes within the page's content budget while the
  glyph is painted, as a decoded one does (context::hold_content), so a page
  skips the same glyphs once the budget is spent, kept or not;
- one decoded with no more than 64 KiB of budget left, which the budget may
  have cut short, isn't kept;
- each kept procedure counts its name and 64 bytes besides its bytes against
  the cache's 32 MiB.
Tests for the 64 KiB and 32 MiB limits and for two fonts with the same glyph
name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-06 17:54:56 +08:00
..