Align and Distribute of Text Elements

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

Bug Description

Kubuntu Natty 64bit - Inkscape 0.48.1 r9760

I have two text elements that I want to align top edges. One of them has two blank lines at the beginning. Both use the same font and font size.

Expected behavior: The first line of the first element is aligned with the first line of the second element.

Observed behavior: The first line of the first element is aligned with the third line of the second element. Blank lines are ignored.

Inkscape: Please do not ignore blank lines, they are part of the text element with a purpose and if I did not want them there I would remove them.

Thank you.

Tags: aligning text
Revision history for this message
Yuv (yuv) wrote :

workaround: enter a [this line intentionally left blank] comment on the top line of the second element and remember to remove it when finalizing the document for print. not elegant, but it works.

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

Not reproduced with Inkscape 0.48.1 and 0.48+devel r10320 on Mac OS X 10.5.8 with two regular text objects as described.
Did you use the 'Align baselines of text' function in 'Align and Distribute'?

See also:
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Align.html#Align-Align>

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

Known limitation of aligning text anchors: 'Relative to' option fails, tracked in
Bug #167228 “align text objects relative to last selected doesn't work”

Revision history for this message
Yuv (yuv) wrote :

Thanks for pointing me in the right direction.

I did not use the 'Align baselines of text' function and indeed it is a better workaround to my specific problem.

I align relative to "selection", not to "last selected", so my issue is unrelated with Bug #167228.

I still do not understand why, when I drag a rectangle with the Text tool to write text into it, and put a couple of carriage returns at the beginning of the text, they are not considered to be part of the object to be aligned when I hit the "align top edges" button. But given all available workaround, I can now live with such illogical behavior and understanding it would be a nice theoretical exercise with little practical value for me (although this IMHO unintuitive behavior can be quite confusing when somebody is confronted with it for the first time).

Revision history for this message
Yuv (yuv) wrote :

After reading a little bit more: I find it counter intuitive that for text element the baseline is used as reference point instead of the bounding box sides, especially since there are buttons to align the baseline of texts. IMHO the natural / default behavior should be to refer to the bounding box sides for all elements, unless the "align baseline of text" function is used.

Revision history for this message
Yuv (yuv) wrote :

This counter-intuitive behaviour is still present in 0.91

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.