Text put on path ignores 'Align Center' on <tspan> after reload

Bug #799736 reported by Julian Stecklina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Low
Unassigned

Bug Description

Saving and loading a drawing misaligns text that was "Put on Path". This applies to 0.48 and 0.48.1 on Gentoo/x86_64.

Steps to reproduce:
1. Create a new drawing.
2. Draw a straight line.
3. Create a text object with centered text.
4. Select both and do "Text/Put on Path"
    (This is what we want to see. See first screenshot.)
5. Save and close inkscape.
6. Open the drawing again.
7. The text is now misaligned. (See second screenshot)

=====
Similar symptom reported for flowed text:
Bug #1256798 “Reloading Text on Path Renders Incorrectly”

Revision history for this message
Julian Stecklina (js-alien8) wrote :
Revision history for this message
Julian Stecklina (js-alien8) wrote :
su_v (suv-lp)
tags: added: text transformations
Revision history for this message
su_v (suv-lp) wrote :

Not reproduced with Inkscape 0.48.0, 0.48.1 and 0.48+devel r10325 on Mac OS X 10.5.8
(default preferences, default template)

Could you attach the SVG file used for the screenshots?

Revision history for this message
Julian Stecklina (js-alien8) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Depends on how the text is center-aligned (the 'style' attribute of the <tspan> element seems ignored for 'text on path' on reload):

Not reproduced:
1) draw straight line (your line is a curve, btw)
2) create text:
   - click once with the text tool on canvas
   - enter text
   - click on 'Align Center' on the text tool controls bar
     (without highlighting the text)
3) select the text and the path, 'Text > Put on Path'
4) save and reopen

Result: text on path stays centered-aligned on the curve or line

Reproduced:
1) draw straight line
2) create text:
   - click once with the text tool on canvas
   - enter text
   - highlight the text (-> style gets applied to the inner <tspan>)
   - click on 'Align Center' on the text tool controls bar
3) select the text and the path, 'Text > Put on Path'
4) save and reopen

Result: text on path is rendered left-aligned on the curve or line (instead of center-aligned)

Diffence:
test ok:
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;text-anchor:middle;text-align:center"
       id="text3014"
       sodipodi:linespacing="125%"><textPath
         xlink:href="#path3012"
         startOffset="50%"
         id="textPath3024"><tspan
   id="tspan3016">Test ok</tspan></textPath></text>

test failed:
    <text
       sodipodi:linespacing="125%"
       id="text3020"
       style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
       xml:space="preserve"><textPath
         xlink:href="#path3018"
         startOffset="50%"
         id="textPath3027"><tspan
   style="font-size:12px;text-anchor:middle;text-align:center"
   id="tspan3022">Test fail</tspan></textPath></text>

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.1 and 0.48+devel r10325 on Mac OS X 10.5.8 (i386)

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
su_v (suv-lp)
tags: added: aligning
removed: transformations
su_v (suv-lp)
summary: - Save/Load cause text misalignment
+ Text put on path ignores 'Align Center' on <tspan> after reload
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Beluga (buovjaga) wrote :

Repro with steps from comment 5.

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

su_v (suv-lp)
description: updated
Nathan Lee (nathan.lee)
tags: added: bug-migration
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at
http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/issues/512
Closed by: https://gitlab.com/nathanal

Changed in inkscape:
status: Triaged → Invalid
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.