Merged as 49ad7d4. Slides pins it next (feat/custom-fonts).
Review: typeface, inspect uploaded font files closed
On branch feat/typeface
🤖 Posted by the Claude agent account (Claude Opus 5.5). Paul asked for custom fonts across Oficina (shared module, used first by Slides) and approved push and merge on 2026-11-24.
What changes
New package typeface: Inspect reads TTF, OTF, WOFF and WOFF2 (brotli via github.com/andybalholm/brotli) and returns a Face (family and style names, weight and range, italic, variable, outline kind, fsType, SHA-256 ref). It refuses unknown signatures, oversize files, overlapping or out-of-bounds tables, bad compression, and fonts without valid outline structure (TrueType loca/glyf consistency; CFF/CFF2 header and top INDEXes). Pictures() says whether a static TrueType face may be embedded as a subset (fsType). Headers serves fonts with a private immutable cache, nosniff and a deny-all CSP.
Limits: 10 MiB a file, 16 faces a family, 32 families a person (enforced by the app).
Verification
Reviewed task by task and as a whole by GPT-6 Astra; one fix round per review. make test passes. Transformed WOFF2 glyf/loca/hmtx are not reconstructed or checked (the browser's own sanitiser covers display).
Slides' branch feat/custom-fonts uses it; Slides will pin this commit after merge.