mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
Variation deltas can take solid and gradient stop alpha outside [0, 1]. Narrowing those values to F2DOT14 before clamping wraps alpha 2 to -2 and alpha -3 to 1, reversing the intended opacity. Clamp full instances in float before storing alpha. Keep partial bases unclamped because surviving axes can bring them back into range. Add synthetic solid and gradient regressions for overflow, underflow, and a partial base of 1.5 reduced to 0.5 by the retained axis. The old subsetter fails four full-instance checks; the entire configured Meson suite passes (278 tests, one skipped). Assisted-by: Codex