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!
Vertical Text Alignment Strategies
Vertical Text Alignment Strategies
Would bounds[3] of the text layer not suffice as information?
Admittedly that would vary depending on the presence or absence of descenders …
Admittedly that would vary depending on the presence or absence of descenders …