SVG rendering issue - trailing lines affect preceding

Bug #1104338 reported by David Mathog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

While debugging libTERE this strange one turned up. Basically what happens is that dump2.svg shows 2 lines a certain way,
and dump3.svg adds a third line. The addition of the third line somehow changes the rendering of the 2nd line, even though
in dump3.svg the relevant xml for line 2 is unchanged. All tested versions of Inkscape do this.

A bit more detail. The two dump files draw first a rectangle around the paragraph, then a rectangle where each line will be,
then each line of text (in red), and finally, the entire paragraph (in a <text> structure) is drawn in black. When everything works correctly the black text exactly overlays the red text. That is what happens in dump2.svg. However, adding a third line causes,
for some obscure reason, the 2nd red line to be drawn in the wrong position. If you diff dump2.svg and dump3.svg the XML
for that draw is unchanged.

Files that will be attached:

dump2.svg the two line variant
dump3.svg the three line variant, dump2.svg plus one more line
dump2vs3.png screen shot of the two displayed, demonstrating the offset of the second line (red text, line rectangle)
   caused by the addition of the third line.

Tags: svg text
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

Oops, let me correct that. The red text did not shift, what shifted was the overlaying black text for the second line. (I should have put a ruler on the screen earlier.) So the change that matters is the addition of the <tspan> for the 3rd line after the
(unchanged) <tspan> for the second line.

Revision history for this message
David Mathog (mathog) wrote :

Hmmmm. The issue seems to be the "y" value for each of the 3 lines. The first two are 80 apart, while the 2nd and 3rd are
only 77 apart. The render is maybe only looking at the first and last "y" values, and spacing all the lines regularly based on those values, ignoring the supplied "y" values for the other lines?

su_v (suv-lp)
tags: added: svg text
Revision history for this message
Beluga (buovjaga) wrote :

Yep, Firefox does not show the problem.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.