Aligning text on a path

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Aligning text on a path

Postby Espermaschine » Tue Jun 16, 2015 10:05 pm

I noticed when i put text on a (circular) path, Inkscape is behaving weird.

Everytime i manually rotate the effect into the precise position, it use to snap back a little, which makes it hard to get right.

Why is that so and what are your strategies to counteract ?

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Aligning text on a path

Postby Maestral » Tue Jun 16, 2015 11:23 pm

First things first....

What`s weird?
What`s "manually rotate the effect"?

Check the alignment / centred one might help
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Aligning text on a path

Postby brynn » Tue Jun 16, 2015 11:33 pm

Interesting - I see what you mean!

Best guess. I notice as I rotate the circle and text together, the text comes off the path during the rotation (because you are technically rotating 2 different objects, with different dimensions, at the same time) the text comes off the path. I think it jumps back because Inkscape has to recalculate the text on path action, because both the text and the path have moved, during the rotation.

There's a better way to position the text around a circle, than rotating the whole thing, though. If you make the circle using the Ellipse tool, and convert to path, Inkscape decides that the 1st node of that new path is the one on the far right side of the circle. The next node (2nd) going clockwise is the bottom node. That's why the text starts there and goes around the bottom of the circle.

The way I would go, to put the text, let's say at the top of the circle, would be to rotate the circle until that 1st node is at the top. Then I would make the text centered, rather than the default (left justified). And then apply it to the path. This way, very little extra adjustment is needed. But if it is, you can either add spaces in front of the text, or use horizontal kerning on the control bar.

There are probably other ways to do this (as we often find, with Inkscape).

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Aligning text on a path

Postby Espermaschine » Tue Jun 16, 2015 11:36 pm

brynn wrote:The way I would go, to put the text, let's say at the top of the circle, would be to rotate the circle until that 1st node is at the top. Then I would make the text centered, rather than the default (left justified). And then apply it to the path.

Ah yes, thanks Brynn !

Now that you say it, ofnuts (who wrote the python script for text along a path for Gimp) once gave me the tip to break the path at one point, and put it on the bottom.
Have to try that.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Aligning text on a path

Postby brynn » Tue Jun 16, 2015 11:42 pm

Yes, I guess you could break the path, to force the 1st node to be in a different place, rather than rotate. It would be faster than rotating. (For rotating, use the Ctrl key, to make 15 degree steps, or use Transform dialog, for precision.)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Aligning text on a path

Postby Espermaschine » Tue Jun 16, 2015 11:49 pm

Okay, this seems like a good solution (a mix of all the posts, lol):

1. Break path at the bottom
2. Change text aligment to centered
3. Put on path
4. Win


Return to “Help with using Inkscape”