Calculate length of text lines
In a script, I am inserting text that is a 4-line poem. Each line except the last ends with a hard return ("\n"). I would like to calculate the length (in inches or some other length unit) of each individual line to find the longest line and adjust the left indent accordingly. Is it possible to get the length of a line of text in a script?
Thanks!