Incorrect Tspan rendering, single x- co-ordinate seemingly ignored.

Bug #1676095 reported by Alex Farlie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

In the attached file, I have a text element with two tspans.

On cleaning this up from the original EPS, I de-grouped everything to ensure this wasn't an issue relating to various scaling/ transform issues.

I've marked where the line 2 tspan should have rendered, and where it actually did.

The original drawing is an EPS that was supplied to me by the UK Department of Transport under Open Government licence Terms, to support a Transcription effort at Wikiosurce.
It would be NICE to have it render correctly in Inkscape.

Other than degrouping the elements in it the only other change made was the removal of other entries in the relevant x attribute, for the relevant tspan element.

Why is the rendering seemingly ignoring the x-attribute on the second tspan?

Tags: text
Revision history for this message
Alex Farlie (afarlie) wrote :
Revision history for this message
Alex Farlie (afarlie) wrote :

Tested/uncovered in Inkscape 0.92.1 r15371 (on Windows)

Revision history for this message
Eman Modnar (eman-mod) wrote :

I confirm. The two spans have different x-coordinates:

     <tspan
       id="tspan58"
       sodipodi:role="line"
       y="37.487736"
 -> x="248.74701"
       style="stroke-width:1.33333325">75 min</tspan>
     <tspan
       id="tspan60"
       sodipodi:role="line"
       y="52.223732"
 -> x="241.73866"
       style="stroke-width:1.33333325">150 max</tspan>

It is expected that they'll be rendered with offset to each other (http://imgur.com/9mJAhtW), but instead they rendered aligned to the left (http://imgur.com/2iuLeyT). 'text' element has no 'text-align' CSS property set.

I tested trunk version on Linux.

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows 7, Inkscape 0.92.1 and lp:inkscape rev. 15608.
Batik 1.7 shows the second line correctly positioned.

tags: added: text
Changed in inkscape:
importance: Undecided → Medium
status: New → Triaged
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.