line-height property not set properly?

Bug #382472 reported by Robert Flight
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

Try this:

type multi-line text in an SVG file. Open in SVG "compliant" browser (FireFox, Chrome, Opera), text looks fine. Modify the "line-height" property of the text element, save. Reload in browser, the text will be unchanged.

Without any text selected, go into text properties, change "line-height", and click "set as default", type text, examine in browser. Changes in "line-height" are reflected in browser.

From what I can tell examining the XML of the SVG files, what is happening is that the new X and Y coordinates of the <tspan> elements actually defining the text itself is not getting updated when one changes the "line-height" property of a particular text object. In the Inkscape window it appears that the "line-height" holds sway, but in the browser the X and Y coordinates hold sway.

Tags: text ui
Revision history for this message
Robert Flight (rflight79) wrote :

Sorry, should have mentioned that I am running v.46

Revision history for this message
Robert Flight (rflight79) wrote :

I should have also mentioned that I am using the Win32 build.

Just verified that this bug is present in Inkscape21453-0905302106 as well.

Revision history for this message
Robert Flight (rflight79) wrote :

Ok, so I have verified that it is the X and Y coordinates are not being updated for text objects if all you do is change the some font property. If you move the text object only 1 pixel from its previous position (and then back if so desired), the coordinates will be updated and everything will be fine.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Adonis Papaderos (ado-papas) wrote :

This behavior occurs even on "normal" changing of the linespacing - using <Alt> + arrow

su_v (suv-lp)
tags: added: ui
removed: line-height
Revision history for this message
su_v (suv-lp) wrote :

Still present in current stable (0.48.1) and trunk (tested with r10325).

Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Replicated in 0.48.0, 0.91-1 but no longer happens in 0.92.2, testing on Windows 10

Also no longer happening in 1.1, testing on Linux Mint 20

If you still experience this (or spot any other issues), please open a new issue at http://inkscape.org/report (which links to our current bugtracker)

Thanks for the report!

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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