mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-09-12 07:06:03 -07:00
61ca5e5946
The spline fitter's least-squares cubic fit (flo_curves, f64) diverges by ULPs across architectures: on x86_64 vs arm64 an arc decomposes into slightly different control points, changing the SVG bytes with no real geometry change (verified with an x86_64 emulation: 0 pixels differ by >40, worst channel delta 20 — visually identical). Byte-exact golden comparison is therefore inappropriate for the spline output. Render both the stored golden and the produced SVG (resvg) and diff pixels, tolerating a tiny fraction for sub-pixel boundary flips. Encoding-agnostic and architecture-robust, while still catching genuine regressions (which move boundaries by whole pixels).