Slice the blob at dataZ, then slice the remaining bytes at the glyph
start offset. Chaining sub_array avoids a wrapping unsigned addition
and lets each slice clamp against the remaining length.
Keep test_subset_gvar_valid_data_offsets_control and
test_subset_gvar_data_offset_overflow_rejected unchanged.
Assisted-by: an AI coding assistant
Account for the uint24 glyphCount field when reserving the uppercase
GVAR header. The fixed 20-byte size caused the final byte of the
glyphVariationDataArrayOffset to overlap the first array offset.
Add an exact binary subsetting regression for the 21-byte header.
Testing: meson test -C build --print-errorlogs
Assisted-by: OpenAI Codex
Leave head generation to GLYF when it is being subset, matching the
existing glyf handling. Drop GVAR when all variation axes are pinned,
matching gvar.
Add regression coverage for both cases.
Assisted-by: OpenAI Codex