|
rigSvg 0.1.0
RigKit pack API - rigSvg
|
#include <string>#include "ParsedPathDoc.h"Functions | |
| bool | rigkit::svg::loadFile (const std::string &path, plot::ParsedPathDoc &out) |
| Load SVG into ParsedPathDoc (geometry + solid/gradient paints). | |
| bool | rigkit::svg::loadString (const std::string &svgText, plot::ParsedPathDoc &out) |
| Parse SVG XML text (same subset as loadFile). | |
| bool rigkit::svg::loadFile | ( | const std::string & | path, |
| plot::ParsedPathDoc & | out ) |
Load SVG into ParsedPathDoc (geometry + solid/gradient paints).
Supports path (M/L/H/V/C/S/Q/T/A/Z), line/rect/circle/ellipse/poly, nested g layers, transforms, viewBox, fill/stroke colours, stroke-width, inherited fill-rule from <svg> / <g> (CorelDRAW root evenodd), CSS class= rules from <style> (CorelDRAW), @font-face, <text> / <tspan> / <textPath>, clipPath, and <linearGradient> / <radialGradient> via url(#id). Arcs stay ArcTo.