Hi all,
I want to create a flow text which is vertically centered. It should not be a one time solution. I mean whenever I change the text I want inkscape align it automatically. Is there a text attribute to do that?
Erdem
vertically centered text
Re: vertically centered text

Welcome to the forum, Erdem!
You can center the text using the Align and Distribute dialog (Object menu). Here's the maual info: http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Align.html.
Let us know if that works. If not, we'll try again

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: vertically centered text
Your question is too vague. Please explain what you mean by "vertically centered". Do you mean that text alignment within your flowed text should be centered (i.e., each line of text is centered relative to the other lines of text) or that the text object should be centered relative to other objects or the page (i.e., brynn's suggestion), or that you want the text to run vertically rather than horizontally (i.e., reads top to bottom rather than left to right)? For option 3 see: http://tavmjong.free.fr/INKSCAPE/MANUAL ... rientation
For option 2 see brynn's response.
For option 1 see: http://tavmjong.free.fr/INKSCAPE/MANUAL ... -FontStyle
For none of the above, post a more specific question.
For option 2 see brynn's response.
For option 1 see: http://tavmjong.free.fr/INKSCAPE/MANUAL ... -FontStyle
For none of the above, post a more specific question.
Re: vertically centered text
Thanks for replies.
I'm sorry that I didn't see your replies until now (I don't know why) and for my vague question.
I have attached a test file. What I basically want is text "erdem" (flowPara4381) is automatically placed in the vertical center of rect4379 which is flow region of example flow text.
It is currently horizontally centered. I want the same thing for vertical centering. So whenever I modify the text it will be placed in the middle of the flow region automatically (even if it is more than one line).
Or more technically I'm looking for something like html vertical-align attribute:
Or if I need to code:
I don't know anyother way to explane myself
Sorry, not a verbally strong man.
Cheers
Erdem
I'm sorry that I didn't see your replies until now (I don't know why) and for my vague question.
I have attached a test file. What I basically want is text "erdem" (flowPara4381) is automatically placed in the vertical center of rect4379 which is flow region of example flow text.
It is currently horizontally centered. I want the same thing for vertical centering. So whenever I modify the text it will be placed in the middle of the flow region automatically (even if it is more than one line).
Or more technically I'm looking for something like html vertical-align attribute:
Code: Select all
<td style="vertical-align:middle"> ... </td>
Or if I need to code:
Code: Select all
totalHeight = 0
for line in allLines; do
totalHeight += line.height
setFirstLineY( (flowRegion.height - totalHeight)/2 + flowRegion.y )
I don't know anyother way to explane myself

Cheers
Erdem
- Attachments
-
- test.svg.zip
- test svg
- (1.08 KiB) Downloaded 168 times
Re: vertically centered text
zuencap wrote:Any answers?
Answer I: known (but not yet implemented) feature request, see Bug #497641 in Inkscape: “vertically align text”
Answer II: no, currently Inkscape cannot vertically align text content (<tspan>s) or flowed text paragraphs relative to the text frame, but it's a known feature request. Please keep in mind that the current 'Flowed Text' implementation in Inkscape was based on a later dropped proposal for SVG 1.2, and AFAIU it's not clear yet how this implementation will change once a newer SVG specification will include more text formatting features.