Files
harfbuzz/test/subset/data/tests/colrv1_alpha_instance.tests
Behdad Esfahbod 372119f1df [subset] Clamp fully instantiated COLRv1 alpha before narrowing (#6343)
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
2026-10-10 00:30:06 -06:00

19 lines
289 B
Plaintext

# Synthetic solid and gradient alpha values overflow F2DOT14 at wght=900.
# Partial instancing must preserve a 1.5 base because wdth=125 reduces it.
FONTS:
COLRv1-alpha.ttf
PROFILES:
default.txt
SUBSETS:
*
INSTANCES:
wght=900,wdth=drop
wght=650,wdth=125
wght=650
OPTIONS:
no_fonttools