mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-27 16:49:42 +01:00
UVS (Unicode Variation Sequence) edges in the depend graph couldn't properly represent the filtering requirement that BOTH the base unicode AND variation selector must be in the input unicodes. This caused over-approximation in depend closure vs subset closure. Solution: Handle UVS separately using existing query APIs - Skip all cmap edges during depend closure processing - Use hb_font_get_variation_glyph() to query UVS mappings directly - For GSUB tests: Use input codepoints directly for UVS queries - For non-GSUB tests: Build unicodes from starting glyphs via forward cmap iteration (hb_face_collect_nominal_glyph_mapping) This correctly matches subset's UVS handling while keeping the depend graph focused on non-UVS dependencies. Also fixes -t parameter to support full 64-bit test seeds by parsing as string before converting to uint64_t. Test results: - NotoSansMath-Regular.ttf: 100,000 tests pass - Padauk-Bold.ttf: 100,000 tests pass - ReemKufiInk-Regular.ttf: 100,000 tests pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>