-
Fit text within a text box with a fixed size
Hello,
I need to make text to fit in a textbox with a fixed size. I need the text to start lower the font size when reach the end of the text box
I tried some expression and the font value is updating in the character panel but the text is not
maxH = 850; currentH = thisLayer.sourceRectAtTime(time, false).height; ratio = Math.min(maxH / currentH, 1); fontS = 150 * ratio; style.setFontSize(fontS)
Can anyone come with a solution for this problem?
Sorry, there were no replies found.