mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Overlapping bounding ranges do not imply that strided input and output slots overlap. For equal strides, check field separation modulo the stride, including the gap across record boundaries. Share this check between advances and vertical origins. Cover interleaved glyph/position records and hb-ot-normalize's mapping from codepoint to var1.u32 within the same glyph-info array. Tests: full Meson suite (281 passed, 1 skipped), using opt-level=0 for Clippy's nightly compiler workaround. An exhaustive standalone check covered 3,136,320 stride/offset/count layouts. Seven-run medians for interleaved Roboto improved 2.64x for horizontal advances, 22.77x for vertical advances, and 1.77x for vertical origins. Assisted-by: OpenAI Codex