mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
Implement a minimal SVG parser/renderer that translates OpenType SVG table documents into paint commands through the existing hb_paint_funcs_t interface. All pixel-level rendering (gradients, compositing, clipping) is handled by the existing hb_raster_paint_t infrastructure. Features: - XML tokenizer and SVG path data parser (all commands including arcs) - Shape-to-path converters (rect, circle, ellipse, line, polyline, polygon) - Gradient support (linearGradient, radialGradient with stops and transforms) - SVG color parser (#RGB, #RRGGBB, rgb(), named colors, currentColor) - CPAL palette colors via var(--colorN) with fallback support - Transform parser (matrix, translate, scale, rotate, skewX, skewY) - Defs/use resolution, clipPath support, group opacity - Hook into hb-raster utility for SVG font rendering New files: hb-raster-svg.cc, hb-raster-svg.hh, hb-raster-paint.hh Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>