mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-28 03:37:00 -06:00
VectorCraft exports type on a path as <text><textPath href="#text-path-N" startOffset="…%"> with the path in <defs>, but the XML text fallback read every <text> as point type at the text element's x/y. Text on a path therefore re-imported as a straight line at (0, 0), above the artboard and mostly out of view, and lost its path. Resolve the textPath's href (SVG 2 href or xlink:href) to the <path>, bake the text's user-space transform (and the path's own transform) into it, and read startOffset (a percentage, or a length along the path) into TextKind::OnPath. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>