Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Text not aligned in bounding box

New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

When creating text boxes the baseline is not set to centered within the bounding box, leading to text not being aligned accurately while using the align tool. I have the workaround of FX: Outline Object which snaps the box to the glyph, but it seems crazy that I would have to do that to every line of text to have it align to artboard correctly.

 

In the picture:

Blue L: Outline Object is on, Horizontal and Vertical Align Center selected on the align panel, aligned to artboard.

Black L: Typed an L with no modifications, Horizontal and Vertical Align Center selected on the align panel, aligned to artboard.

 

Alexandria27029718f0po_0-1686079572404.png

Any help is greatly appreciated.

TOPICS
Bug , Tools , Type

Views

4.9K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Jun 06, 2023 Jun 06, 2023

In the Align palette there is an option in the flyout menu called Align to Glyph Bounds. That can be applied to Point Text and Area Text objects. That option will allow the letter shapes to be aligned to other objects rather than the bounding box.

 

Usually when I want to vertically center align text to something else I'll type out a "dummy" letter, such as a capital "E" and set it to the desired size. I'll vertically center align that letter to my target container object and then type over it w

...

Votes

Translate
Community Expert , Jun 07, 2023 Jun 07, 2023

totallyanef,

 

You mention "When creating text boxes the baseline is not set to centered within the bounding box,", but as far as I can see you are trying to centre the whole letter/text rather than the baseline.

 

As I (mis)understand it, it is quite possible to align (the appearance of) live Type accurately in the way you wish:

 

1) Tick Use Preview/Artwork Bounds in Edit>Preferences>General;
2) Select the live Type with the (normal) Selection Tool and Effect>Path>Outline Object;

3) Align accur

...

Votes

Translate
Adobe
Community Expert ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

In the Align palette there is an option in the flyout menu called Align to Glyph Bounds. That can be applied to Point Text and Area Text objects. That option will allow the letter shapes to be aligned to other objects rather than the bounding box.

 

Usually when I want to vertically center align text to something else I'll type out a "dummy" letter, such as a capital "E" and set it to the desired size. I'll vertically center align that letter to my target container object and then type over it with the real text. Aligning using glyph bounds will use any parts of letters that over-shoot the cap-height line or drop below the baseline (such as ascenders and descenders in lowercase letters). Sans-serif typefaces such as Helvetica work better with this trick than more ornate typefaces.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 07, 2023 Jun 07, 2023

Copy link to clipboard

Copied

Thank you for this! Is this a new problem? I can't seem to remember the bounding boxes being so off centered before.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 07, 2023 Jun 07, 2023

Copy link to clipboard

Copied

Actually the bounding boxes around text objects have always been off vertical center. That has made vertically center-aligning lettering to other objects very frustrating. In the past the align functions would only align using that box, which seem arbitrarily defined. It doesn't have the same dimensions an the Em Square used in the actual font file as listed in a font editing application like Glyphs or FontLab Studio. But now we have the option to align lettering to other objects using the actual shapes of the letters (glyph bounds). Plus there is the new font height options, which makes certain design tasks (such as sign design) much easier. Still there's one other feature request I'd like to see filled: aligning or distributing text objects according to their baselines. That would provide another productivity boost.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 07, 2023 Jun 07, 2023

Copy link to clipboard

Copied

LATEST

totallyanef,

 

You mention "When creating text boxes the baseline is not set to centered within the bounding box,", but as far as I can see you are trying to centre the whole letter/text rather than the baseline.

 

As I (mis)understand it, it is quite possible to align (the appearance of) live Type accurately in the way you wish:

 

1) Tick Use Preview/Artwork Bounds in Edit>Preferences>General;
2) Select the live Type with the (normal) Selection Tool and Effect>Path>Outline Object;

3) Align accurately as desired.

 

1) and 2) will give you a Bounding Box that fits tightly round the live Type, and keeps doing so while you align in 3).

 

After aligning, just reverse 1) and 2).

 

That will bring the aligned Type back to normal plain Type, still in the aligned place, and with no unwanted strengenesses when you conitnue working with other objects.

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines