Script to resize text to fit text box?
Posted: Thu Aug 06, 2020 6:09 pm
Hi all,
I am looking for a way (via script) to look at some text in a text box and ensure the text box is wide enough to fully show all text characters within and if not decrease the text size accordingly. In this case, text boxes will contain a decimal measurement in inches. A text box could contain:
x
x.x
x.xx
x.xxx
x.xxxx
etc.
(x is a number of course)
Just figure the width based on the longest possible text string for all text boxes you say? That's great but then I run the risk of overlapping text between two neighboring text boxes.
A script is preferable but I am open to other ideas.
Thank you,
Jon
I am looking for a way (via script) to look at some text in a text box and ensure the text box is wide enough to fully show all text characters within and if not decrease the text size accordingly. In this case, text boxes will contain a decimal measurement in inches. A text box could contain:
x
x.x
x.xx
x.xxx
x.xxxx
etc.
(x is a number of course)
Just figure the width based on the longest possible text string for all text boxes you say? That's great but then I run the risk of overlapping text between two neighboring text boxes.
A script is preferable but I am open to other ideas.
Thank you,
Jon
