mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
Replace glyph-ID-based dedup with content-based dedup for SVG path definitions and color glyph groups. Path/paint output is hashed and compared byte-for-byte against existing defs; identical content reuses the same def regardless of glyph ID. This eliminates the font reference held by draw/paint contexts (cached_font + hb_font_reference), which was keeping the font and its face alive longer than the caller expected. No font pointer is stored at all now. Also removes changed() — with content-based dedup, foreground and palette changes produce different content that naturally won't match cached entries. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>