Here's a problem I've been trying to solve for the past year with no luck. I have a text object that I need to keep centered vertically in a fixed-size box in a single specific location on the screen. The text scales in size depending on the amount of text. It could be as few as two words in one line or as many as 4 lines. What we have been doing is to just position and scale the text manually. I was hoping for a more elegant (automated) method of sizing the text to fit in the box using auto-squeeze height and width. I can't figure out the math to keep the text centered on the y-axis, however. I've tried dividing the box object height by 2 and making that the y pivot of the text. I've tried offsets. I've tried halving the height scaled value of the text object bounding box. I've tried setting Y value offsets based on greater than or less than the value of the bounding box height, and I just haven't gotten a consistent result. Is there a way to auto-scale the size of the text box object based on the size of the box the text sits in?
I've attached a couple of samples of the graphic I'm working with so you can see the different variations I'm dealing with.
Thank you for any help at all.
------------------------------
Greg Petronzio
Graphics Op/Integrator
Freelance
------------------------------