Comment 4 for bug 516216

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

In retrospect, I think Inkscape's current behavior is consistent with what one would naively expect: if a section of text is selected, only that text moves, if no text is selected, the characters following the text cursor all shift (even if they are in different lines). The problem is that on writing out the SVG, the first "dy" attribute in a <tspan> must be written correctly so other SVG viewers render the text in the same way.

I have modified Layout-TNG-Compute.cpp to ensure that the first <tspan> of each line is offset only by the line-spacing. This fixes the immediate problem of ensuring Inkscape's rendering is the same as other viewers. Until more work is done, only vertical kerning within one line will work properly.