Text Line Spacing shows as 100% after change

Bug #463740 reported by Kjohrf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I type some multi-line text with the Text Tool and then open the Text and Font dialog.
I change the line spacing with the drop down menu. Let's say I change it from 100% to 80%.
The I click the Apply button. The change is effected, but the drop down items shows 100%.
It should now say 80%.

If I close and re-open the dialog, it still says 100%.

This is 0.47pre4 build on Win XP.

While I'm at it, how come I cannot specify any integer value? Maybe I want 85%.
As another bug (wishlist item) has said, points should really be an option!

Tags: text ui
su_v (suv-lp)
tags: added: text ui
Revision history for this message
su_v (suv-lp) wrote :

This is reproducible with multi-line text objects when the text tool (<F8>) is active while the 'Text and Font…' dialog is open.

Use <F1> to switch from the text tool to the selector tool and the 'Text and Font…' dialog immediately shows the assigned line spacing for the selected text object and lets you enter any arbitrary values.

Maybe the UI needs clarification, but I don't see a 'bug' here. Technically I think it is correct because the line-height attribute is *not* set for the individual <svg:tspan> or <svg:flowPara > elements but for the containing (parent) <svg:text> element.

Revision history for this message
Kjohrf (kjohrf) wrote :

Appreciate you looking at this, but I'm very confused. :( I go to the dialog. I change a setting. The change takes effect but a different value shows. This is different from how everything else in Inkscape (or just about any program) works.

By the way, the same thing happens for a single line of text.

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

see bug #382472 "line-height property not set properly?":

The 'line-height' property (part the 'style' attribute of the selected text) isn't properly updated after changing the line spacing values in the 'Text and Font…' dialog. Selecting the text object and moving it one step away and back (use the cursor keys) triggers a re-calculation of the text coordinates and also sets the line-height attribute for any <tspan> elements that have different settings than the parent <svg:text> element (or <svg:flowPara> and parent <svg:flowRoot> element if you use 'Flowed text'). [ You can open the XML Editor and inspect how the text elements are stored in the SVG structure and what changes after a) applying a different value for line spacing and b) moving the text object... ]

You are right - it's a bug and AFAIU already filed in report #382472.

Revision history for this message
Kjohrf (kjohrf) wrote :

Please note that when you use the Text dialog and run into this issue that if you are trying to change the line spacing TO 100%, it is not possible. Since it thinks it is already 100%, the Apply button is not active.

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

Linking as duplicate to bug #382472 "line-height property not set properly?".
<https://bugs.launchpad.net/inkscape/+bug/382472>

Please add a comment and revert the duplicate status if you don't agree and think these are separate issues.

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.