Commit Graph
1 Commits
Author SHA1 Message Date
Behdad EsfahbodandClaude Opus 4.6 834826289e [vector] Fold svg-path sink into a format-aware vector-path
Rename hb-vector-svg-path.{cc,hh} to hb-vector-path.{cc,hh}
and make the sink format-aware (SVG or PDF), so the PDF
backend can reuse it for arbitrary-path clipping without
spinning up its own path serializer.

hb_vector_svg_path_sink_t gains a hb_vector_format_t field
and becomes hb_vector_path_sink_t; the draw callbacks
switch on format and emit SVG path-data or PDF path
operators into the external buffer.  hb-vector-draw.cc and
hb-vector-paint.cc (push_clip_glyph + the recent arbitrary
clip-path start) are updated to the new name with
format=SVG.  No behavior change on the SVG side.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 16:18:20 -06:00