mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
Buffer reset has retained message callbacks since their introduction, although its documentation promised a freshly created buffer state. Clarify that callbacks, their associated data, and attached user data survive reset. Document explicit callback removal and destruction. Add a regression test for callback-directed lookup skipping after clear/reset, restoration of ligatures after removal, and exactly-once destruction on replacement, removal, and final buffer destruction. Tested with meson test -C build: 287 passed, 1 skipped, 0 failed. The API test also compiles without buffer messages or OT shaping. Fixes: https://github.com/harfbuzz/harfbuzz/issues/6341 Assisted-by: OpenAI Codex