vertically align text

Bug #497641 reported by naught101 on 2009-12-17
84
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Unassigned

Bug Description

It would be good to be able to align text relative to it's container, similar to vertical-align property in CSS. The options would be top (default), middle, bottom.

This should work for both flowed and unflowed text: in flowed text, the alignment would be relative to the container, and in unflowed text, relative to the starting point. If bottom-aligned text gets a new line added to it, the whole text shifts up one line to accommodate it.

At the moment, flowedtext that's larger than it's contiainer gets truncated at the bottom - with bottom-aligned text, it should be truncated at the top, I guess.

su_v (suv-lp) on 2009-12-17
Changed in inkscape:
importance: Undecided → Wishlist
jazzynico (jazzynico) on 2010-05-17
tags: added: aligning
removed: alignment

I am affected by this issue as well. In my case, I need to center some text vertically between two guides and horizontally between two other guides. My idea was to create a manually sized text box, snapping its sides to the four guides, and then horizontally and vertically center the text in it. Horizontal centering works by just setting a centered alignment, but vertical centering is missing. Some complicated workarounds have been suggested on the IRC channel, but having this option would greatly simplify this layout task (which I would expect to be rather common)

su_v (suv-lp) on 2010-06-24
Changed in inkscape:
status: New → Confirmed
fabtagon (fabtagon) wrote :

Even though the report is old, here's a hint for the records on how to accomplish vertically aligned text in boxes 'by hand'.

Create a box.
Create a text.
(Move text somewhere into the box.)
Select both text and box.
Menu "Object" > "Align and Distribute" (a panel pops up)
In top part of panel, select "center on vertical axis" (there is one to select on horizontal axis as well).
Voila, your text is now exactly centered in the box.

Drawback: You'll have to go through the procedure again whenever you change the box' or text's size.

This feature would be neat to have in the app! <3

wright_left (wright-left) wrote :

I needed this feature just today.

Chris L Baker (col-b) wrote :

This would be useful. fabtagon's suggestion works in many cases where the box is rectangular, but when it's not (i.e. it's been flown into a shape like a hexagon) this doesn't really work well. Seems like this would be a pretty useful feature.

Charlie (collinslyle) wrote :

I hope this feature is added soon.

Plecto Rincus (plecto) wrote :

Me too would like to see this feature in Inkscape soon!

Ben Stanley (ben-stanley) wrote :

Vertical alignment {Top, Middle, Bottom} is a standard feature in Visio.
Inkscape needs this feature.

Any progress?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers