mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
The paint SVG backend bakes all colors directly — no CSS var(--hb-...) references remain in the output. So the util's SVG parser, var resolver, palette cache, and slice_svg infrastructure are all dead code. write_blob is now just fwrite. Removes ~340 lines: slice_svg, write_slice_resolving_palette_vars, parse_var_color_expr, find_next_var_expr, find_matching_paren, emit_css_color, lookup_palette_color, init_palette_color_cache, skip_ascii_ws, trim_ascii_ws_right, parsed_var_color_expr_t, and associated palette cache state. Regenerated vector test expected outputs (color font SVGs now emit directly without var resolution pass). Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>