2 Replies Latest reply on Oct 24, 2013 12:36 PM by Dan-BTP

    Calculate length of text lines

    Dan-BTP Level 1

      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?