I need a script that would centre a decorative character in a text box.
I have a Text Variable - Issue Date, followed by a tab, followed by a diamond character, followed by a tab and followed by a Issue Name Text Variable.
These text variables change in length. I can't find a way to calculate their lengths.
Is there a way to do that? Because once I have that I will be able to do the rest, to centre the tab.
Unless someone can think of an easier way, you could try this:
- Duplicate the frame containing the variable
- Convert the variable to text
- Measure the text
- Remove the duplicate