Is it possible to auto center text using the "Type on a Path" tool?
Recently I've been using the
Type on a Path tool quite frequently in Illustrator and it frustrates me every time I want to use a circle path to place type on, as I want the text centered at the top of the circle but I always have to center the text myself and try to guess by eye if it's dead center.
Is there a way to auto center the text without me having to drag and guess?
After inputting your type, click the center alignment button ( ) you can use the Direct Selection tool ( ) to drag the alignment handles.
You'll need to have smart guides enabled (View > Smart Guides).
Drag the left handle around till you see the smart guide indicating you're even with the center like so:
When you release it should look like this:
Then drag the right handle around until you see the indicator on the other side like so:
Unfortunately no. Well sort of......
Type on a Path doesn't actually know the direct the length of the path. It knows the positions of it's vertical bar indicators and baseline. So "center" for Type on a Path is the center position between the two outer vertical indicators.
When you first click a path with the Type on a Path Tool, Illustrator uses your click location as a rule for positioning the left vertical indicator.
Your first click is used to set the left side of the Type On a Path. So, you'll find the left vertical indicator where you first clicked the path. Then the right vertical indicator will be at the right end of the path -- center is between the two.
If you want Type on a Path to be automatically centered at the top of a closed circle or ellipse path, the initial click with the Type on a Path Tool should be directly at the bottom center anchor point on the circle/ellipse. This will place the text at the top center of the path because the left vertical indicator will be at the bottom anchor point, then the right vertical indicator will be set at the length of the path, also at the bottom anchor point. It seems a bit backwards to click the bottom of the circle/ellipse to get text at the top, and it is. But by clicking the bottom anchor point, you tell the Type on a Path tool to use the entire path of the circle/ellipse starting at the bottom, making the top the center.
Beyond this.... you're correct, it's all a matter of dragging and eye-balling it. Smart Guides can help in positioning the Type On a Path vertical indicators to better align things when needed.