Vertical Text Alignment Strategies

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

forrestmaready

Vertical Text Alignment Strategies

Post by forrestmaready »

Gentlemen:
I've bugged Adobe about this for some time, but am wondering if you have some best practices on handling this situation:

(mock up of tool):


I have a block of multiline text with content that is changing dynamically. If the block needs only one line of text, that one line should rest on the bottom of the image. If it's two lines, the second line needs to rest on the bottom of the image, and so on... So the last line will always rest on the bottom- what I call vertical text alignment (where Bottom is selected). The only behavior Photoshop currently supports (that I know of) is "Top alignment" where the initial baseline is fixed and new lines are appended downward.

The only way I know how to handle this now is to replace the text, measure the height of the layer, then determine how many text lines were needed, and offset the layer vertically based on that measurement. Are there better ways of doing this?

Is there a way to query how many lines of text are in a text block?

Thanks in advance for any suggestions! Cheers!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pfaffenbichler

Vertical Text Alignment Strategies

Post by pfaffenbichler »

Would bounds[3] of the text layer not suffice as information?
Admittedly that would vary depending on the presence or absence of descenders …