1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Ticket27 — remaining PDF/font fidelity edges
## Context
HANDOFF.md records unverified rotated/CropBox/nonzero-origin inputs and font
formats beyond the supported glyf TrueType/DejaVu fixture. Browser/server font
admission can disagree for unsupported OTF/CFF. Typical synthetic A5 batches are
not evidence for these cases. This is follow-up, not permission to add shaping,
a PDF wrapper/rasterizer or reduce current capacities/fidelity.
## Work / acceptance
Build synthetic fixtures using existing compliant native facilities (no Python
fixture generator without specific approval). Cover rotation, mixed page sizes,
nonzero MediaBox/CropBox origins, supported extra TrueType/Unicode and unsupported
font rejection. Compare edit/proof/stamped/final on every affected page; preserve
coordinates, crop geometry, text fitting, image pixels and the audit body hash.
If fixing fitText or render.c/pdfw.c/ttf.c, update the corresponding fit code and
run required both-page visual and allocation/stream tests. Keep unsupported fonts
out of selectable choices or give an honest consistent failure/fallback; do not
let preview promise a font the server cannot render.
Done means source-linked fixtures, full relevant regressions and visual evidence
with exact source/font versions, plus resource consequences. Do not change
third-party/vendor code or introduce dependencies without approval. Latin-only
scope remains; arbitrary complex-script shaping is not part of this ticket.