mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
Register the vertical-origins batch callback. Compute X using HarfBuzz's batched horizontal advances, then compute Y with v_origin_y_batched. Retain HarfBuzz line and glyph-extents callbacks for fallback behavior. Preserve scalar write order for aliased inputs, overlapping outputs, and repeated X slots while batching normal interleaved position buffers. Add default/varied glyf, CFF, and CFF2 coverage with strided, unaligned, in-place, repeated, invalid-glyph, and zero-count queries. Tests: full Meson suite (281 passed, 1 skipped); font-only Clippy; unchanged 144-case metric snapshots. Another 48 full-font batch cases (53,622 glyph origins) matched the old scalar implementation. Clippy used opt-level=0 for the nightly compiler workaround. Seven-run origin medians improved about 19% overall, about 36-38% for unvaried glyf fonts; varied glyf and CFF/CFF2 remain dominated by extents. Assisted-by: OpenAI Codex