I would like to add text to an SVG template layout and have it flow into the rectangles I have created for it. I would like to do this programmatically.
My initial thought was to use Inkscape and D3.js however Inkscape 1.1 creates tspan objects for flowed text inside text objects and the positions of these seem to be calculated individually. Unless I recreate those calculations in my code (difficult) I don't see how I can flow the text.
Any suggestions as to how this may be achieved?