Skip to content

Refine print typography and add paper and reference controls - #2

Merged
longevityboris merged 1 commit into
mainfrom
codex/comfortable-contract-typography
Sep 10, 2026
Merged

Refine print typography and add paper and reference controls#2
longevityboris merged 1 commit into
mainfrom
codex/comfortable-contract-typography

Conversation

@longevityboris

Copy link
Copy Markdown
Contributor

Contract PDFs used oversized titles and font-dependent line spacing that compressed some body faces. This revision applies a shared print scale across all ten templates: 10.5–11.5 pt body text, measured 145% baseline spacing, a 140 mm reading column and restrained headings. The typography specification links practitioner guidance, reading research and rendering documentation, with their limits clearly distinguished.

A4 remains the default. A3, A5, US Letter, Legal and Executive reflow content without scaling the type. A5 keeps the execution introduction with the first signatory; wider pages align signature fields even when company names wrap differently. --reference on|off controls the printed reference independently of pagination and stored identity. Corrected Archivo files use a pinned upstream revision.

Validation: 36 Rust tests, strict Clippy and formatting passed. PDF checks cover all template/kind combinations, physical paper sizes, reference states, custom content, long company names and execution pagination. First, body and final pages were visually reviewed, and PDF font sizes and baseline distances measured. The regression check rejects the previous orphaned A5 execution layout. Examples and test databases are synthetic and isolated.

@longevityboris
longevityboris merged commit 273eac2 into main Sep 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants