Files
wordcraft/crates/layout
Valentin KleinandClaude Opus 5.5 12a4da3be5 Make the floating header text box test independent of installed fonts (#284)
The test put a two-line header 36pt from the top of the page and checked
that the body still starts at the 72pt top margin. How tall those two
lines are depends on the font the default text resolves to: with the
installed Carlito-style fonts they fit, but with only the bundled
fallback fonts (as on the FreeBSD CI VM) they end at 72.6pt, so the
header correctly pushed the body down and the control check failed.

Start the header 18pt from the top instead, which leaves the two lines
plenty of room above the margin with any font. The checks are unchanged:
the control body starts at the top margin, the floating box changes
neither the body start nor the page count, and the same box inline
still pushes the body down.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 14:36:33 -04:00
..