Flowed Text difficult to work with after transformation

Bug #1421842 reported by John M. Adams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Expired
Undecided
Unassigned

Bug Description

Unexpected behavior found in both of these versions:

Inkscape 0.48.5 r10040 on Windows 7 Professional SP1 (64 bit)
Inkscape 0.48.4 r9939 on Windows 7 Professional SP1 (32 bit)

My co-worker had difficulty changing letter spacing in a file she was working on. I have isolated and reproduced the issue.

Steps:

Create and populate a text object.
Create a rectangle.
Use "Flow into Frame"... text object is converted to FlowRoot linked to rectangle.
Drag to transform FlowRoot.

At this point, if you select the text, setting letter spacing and word spacing using the text tool's toolbar becomes very buggy.

For instance, click in "Letter Spacing", type 20.0, then "tab". When tabbing focus away, letter spacing changes to "5.11".
From "5.11", click the "up" arrow, it changes to "1.31" (wrong increment, wrong direction).
From "1.31", click the "up" arrow again, it changes to "0.34".
Type -20.0, then "tab". When tabbing focus away, letter spacing changes to "-5.11".
Type 100.0, then "tab". When tabbing focus away, letter spacing changes to "25.56".

The letter spacing value seems to move towards either 0 or 100. In the file provided, it wants to trend towards 0. In the original business document, it was trending towards 100.

Setting letter spacing on FlowRoot in the XML editor works as expected.

Setting Transform to empty on the FlowRoot allows manipulation of letter and word spacing on the text tool's toolbar to function normally again.

Attached is a sample file created in Inkscape from a new default document. It contains a normal text object, a rectangle, and a bugged FlowRoot linked to the rectangle.

I'd be happy to provide anything else, if it would be helpful.
Thank you.

Revision history for this message
John M. Adams (johnmadams-web) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

- reproduced on Windows 7, Inkscape 0.91 r13725 (Jan 30 2015)
- reproduced on Inscape trunk rev 13919.

the problem does not appear to be related to document units. However it may be related to the transform that the text has. If I type in 100 for the spacing, and then click away to lose focus, the 100 converts to 32.01. The text has a transform with x scale = 2.0852 and y scale = 4.68168. The geometric mean of these is 3.12446, and the reciprocal of this is 0.32005, which agrees well with the above observed scaling. Further tests using scaling factors of, say, (4, 4), or (2, 0.5), confirm that the spin box scaling is related to the geometric mean of the transform.

likely a special case of Bug 772057

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

fix committed to rev 13937, please re-test

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

[ Needs retesting with current trunk build ]

tags: added: text transformations
Changed in inkscape:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Inkscape because there has been no activity for 60 days.]

Changed in inkscape:
status: Incomplete → Expired
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.