-
Auto Scaling Text Vertically
Hey guys, I’m trying to scale text and I’m having a hard time adjusting it to “squish” when it gets to a certain size.
My text has a text bar that grows with it.
The top image is with shorter text at normal size.
The second is when there’s a lot of text involved – the text shrinks uniformly once it hits a certain width. As you can see it kinda gets a little small.
The third pic is sort of how I would want the text to scale. The characters would stay a certain width but get tall if that makes sense.Below is the expression that i’m currently using.
Any help would be appreciated!maxW = 64; // in percentage of comp width
rect = sourceRectAtTime();
if ( 100 * rect.width / thisComp.width > maxW ) s = maxW * thisComp.width / rect.width;
else s = 100;
[ s, s ]


