mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Expose budget policy and remaining-work callbacks on draw and paint function objects. The public setters clamp invalid negative caps, distinguish finite defaults from explicit unlimited operation, and report whether a backend participates in accounting. Let draw sessions borrow the live counter owned by draw_data. OpenType glyf and CFF traversal then debit the same counter in place, while unsupported backends retain a finite per-glyph fallback. Forward budget access through the parent-font draw adaptor. Document the new API and cover nil, default, unlimited, clamped, concrete, and live-depletion behavior. Tests: meson test -C build (272/272 passed) Assisted-by: OpenAI Codex <codex@openai.com>