Copy link to clipboard
Copied
How to keep paragraph text always horizontally centered? No matter how many lines the text has, it should always remain horizontally centered. In my image, there are three text paragraphs. If there are four or two paragraphs, I'm not sure how to implement this using JSX code.
Copy link to clipboard
Copied
Photoshop is not a good fit for this kind of work, Indesign (with its »Text Frame Options«) seems preferable.
A relatively simple Script could evaluate the Type Layer’s bounds and offset it accordingly, but Asccenders and Descenders could confuse the issue.
Using Baseline Shift instead (as your screenshot seems to indicate) might work … please provide the layered file.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Have you tried creating a Paragraph Style to control the paragraph level settings?
You might also try Shift+Return instead of Return to keep all lines as one paragraph.
We can only see a small part of your Character panel, and I am very curious as to why you have shifted the baseline -142 pixels?
Jane
Copy link to clipboard
Copied
Hello, -142 pixels is because it moves the horizontal position of the text to the middle of the paragraph text frame
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This paragraph text is mainly used for batch replacement because I have thousands of strings that need to be vertically aligned and centered. However, Photoshop paragraph text can only be vertically centered and cannot be horizontally centered.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now