1

I have two layers - black shape and red text in Photoshop:

enter image description here

I want to center the text inside the shape horizontally, and vertically. This is easy, I have done it by Layer > Align > Vertical Centers & Horizontal Centers:

enter image description here

However, when the text is long, it leaves the shape:

enter image description here

My question: Is it possible to wrap the text inside the shape? So the outcome would be something like this:

enter image description here

Note: I cannot create type from the shape, because in that case the result would not be aligned vertically:

enter image description here

There is one similar question, however it does not solve vertical center, nor overflowing. Thank you for your advice.

ADD: The trivial method "create rectangular text container" cannot be used now. The text would be automatically filled using Datasets, therefore I have to create text container that is bigger than actual current text (because the real text could be longer). Using this approach, it would center the text container (and not the real text) according to the rectangle.

1
  • 3
    It's not possible to have Photoshop align text vertically centred automatically as far as I know. I suppose you could possibly script it, but I'm not a coder so can't really help you with that. I'd suggest different software. Recent versions of Illustrator or InDesign can align text vertically within a text box. They also support data driven graphics.
    – Billy Kerr
    Dec 14, 2021 at 12:16

2 Answers 2

1

Photoshop was never meant to do what you're trying to do, and in general has limited typography options.

InDesign is superior in every way at fine typography, and you'll be better off learning the differences and combining PS+ID in the longer term.

0

Use the rectangular text tool.

With the Text tool (T) click and drag to draw a rectangular text container. Center that with your black rectangle.

Edit: since the question didn't originally mention dynamically filling the textbox with a dataset, this answer only applies to static content.

3
  • Not a way. The text would be automatically filled using Datasets, therefore I have to create text container that is bigger than actual current text (because the real text could be longer). Using this approach, it would center the text container (and not the real text) according to the rectangle.
    – Tom11
    Dec 14, 2021 at 10:24
  • You should probably switch over to indesign @Tom11
    – joojaa
    Dec 14, 2021 at 15:08
  • @Tom11 well... you could've given that information from the beginning. As others said, you're better off using InDesign for this type of project.
    – Luciano
    Dec 15, 2021 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.