Skip to main content
Known Participant
March 13, 2014
Question

Text spacing values

  • March 13, 2014
  • 1 reply
  • 743 views

Hi There,

Is there a way to find the leading value of each line of text in an area text box (assuming the leading has been set differently on each line)?

In the same line of thinking, I would also like to determine the spacing before and after each paragraph...

Thanks in advance!

This topic has been closed for replies.

1 reply

Franck Payen
Inspiring
March 15, 2014

You can get these character and paragraph values :

leading
number (double)

The amount of space between two lines of text, in points.

spaceAfter

number (double)

Spacing after paragraph in points.

spaceBefore

number (double)

Spacing before paragraph in points.

EiranixAuthor
Known Participant
March 15, 2014

Thanks for the reply.

What I am really stuck with is how to test each line for these or any other values so I can put them all into a variable list...

I am new to scripting in illustrator, sorry if this is obvious!