mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
Cairo's draw callbacks previously received a raw cairo_t, so paint-driven outline traversals could not share a renderer budget. Nested color glyphs also construct fresh HarfBuzz paint contexts while populating the same scaled-font glyph cache. Attach a finite budget owner to the scaled font and let each draw/paint context borrow it. Recharge only for the outermost glyph callback, expose the budget callbacks on both function sets, and charge emitted path and nested color-glyph work. Exercise the original vector timeout seed through the Cairo user-font renderer. Tests: meson test -C build (275/275 passed) Assisted-by: OpenAI Codex <codex@openai.com>