Commit Graph
2 Commits
Author SHA1 Message Date
Behdad Esfahbod 90045a6551 [vector] Use font coordinates for PDF draw page bounds (#6472)
The PDF draw renderer emitted paths in Y-up coordinates but vertically
mirrored the MediaBox and background rectangle. Use the same extents
for the content, page, and background, matching the paint renderer.

Regenerate the existing PDF fixture with hb-vector. Only the page box
and background coordinates change. Its page now covers the glyphs'
outline Y range; the old page did not. The updated vector regression
fails on the old source. The full Meson suite passes (293 tests).

Reported by Anthropic's OSS Scanner as ordinary bug ANT-2026-0ER2GEWZ.

Assisted-by: OpenAI Codex
2026-10-29 19:30:02 -06:00
Khaled Hosny 04f7a60bc4 [draw] Promote quadratic curves to cubics in double precision (#6057)
The fallback quadratic-to-cubic promotion works in single precision.
This results in different rounding values for different architectures.
Promote in double precision instead, which rounds deterministically.

Add a PDF test that exercises this, and make the test runner handle PDF
expectations.

This also effectively reverts d4511648db
2026-07-08 11:11:16 -06:00