Export to PDF + TeX: wrong alignment of rotated paragraph block

Bug #990099 reported by texnic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Simon Keller

Bug Description

[Windows 7 64 Pro, Inkscape 0.48.2]

A funny bug I should say...

1) Create a text block (F8, drag mouse).
2) Type some text so that it occupies more than one line.
3) Centre the text.
4) Rotate the block by 90 degrees CCW.
5) Finally, save the file as PDF + TeX and compile the result with pdfLaTeX.

As long as the text is horizontal, everything is fine: positioning, alignment.
When the text is 90-degree rotated, the result (in the final PDF, after pdflatex) gets shifted upwards (the bottom margin of the final block is somewhere where the upper margin of the non-rotated block was).

With intermediate rotations (less than 90 degrees) the result is also intermediate.

At the same time, some weird transformation occurs in the text block itself. In my thesis (a large and complex project, the 90-degree rotated text gets left-aligned. But I was unable to reproduce it in a small file so far.

Revision history for this message
texnic (kotya-karapetyan) wrote :
Revision history for this message
texnic (kotya-karapetyan) wrote :
Revision history for this message
texnic (kotya-karapetyan) wrote :
su_v (suv-lp)
tags: added: exporting latex pdf
Changed in inkscape:
status: New → Confirmed
Revision history for this message
Simon Keller (simon-keller) wrote :

I can confirm this bug. For me this problem exists also with just one line of text. It seems like there is something messed up with the width/heigth of the textbox. I'm posting an example soon.

Revision history for this message
Simon Keller (simon-keller) wrote :
Revision history for this message
Simon Keller (simon-keller) wrote :
Revision history for this message
Simon Keller (simon-keller) wrote :

All lines should be placed centered on the reference line.

Changed in inkscape:
status: Confirmed → In Progress
assignee: nobody → Simon (simon-keller)
Revision history for this message
Simon Keller (simon-keller) wrote :

I fixed the bug: The calculation of the rectangle, from which the width of the textbox and the latex anchor point is determined, was mistakenly done after rotating /transforming the text. Now, the anchor point and the width of the textbox are determined before transforming.

Revision history for this message
Simon Keller (simon-keller) wrote :
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.92
Revision history for this message
su_v (suv-lp) wrote :

Committed to trunk in rev 14236.

Changed in inkscape:
status: In Progress → Fix Committed
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Medium
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
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.