mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-27 16:49:42 +01:00
- Add `rng_prob_hit()` helper to replace three repeated injection-check
patterns, each of which was 4–6 lines of std::uniform_real_distribution
boilerplate.
- Add `depend_closure_ctx_t` struct to group the parameters that were
threaded individually through `process_edges_for_tables` (10 params)
and `compute_depend_closure` (9 params); both now take 2–3 params.
- Remove dead `vs_to_gid` map that was created, passed through three
call layers, and never read.
- Fix GSUB-stage indentation in `compute_depend_closure`: the old code
had a spurious outer `{ }` block containing all five table stages,
with the `if (!skip_gsub)` body indented at the wrong level.
- Move `ligature_set_glyphs` into the GSUB stage block where it belongs.
No behaviour change; all tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>