On Wed, 2015-10-28 at 21:50 +0100, Tavmjong Bah wrote:
One could hack this into the code using Inkscape's existing multi-line text mode where each line is a separate <tspan>. In principle, you can set the 'text-length' attribute on each <tspan> element but I don't know the status of browser support. It's not an easy thing to implement as it can get quite complicated with nested <tspan>s.
Thanks for your help tav,
Our text fallback support for text isn't complete afaik, so browser support need not be an issue. What's the status of our text fallback options?
http://www.w3.org/TR/SVG/text.html#TextElementTextLengthAttribute
According to this, textLength would either space text out or stretch it across to space horizontally. So it wouldn't quite resize the tspan to the right font size. Is this interpretation right?
Best Regards, Martin Owens