Reply To: return absolute leading

#92265
Anonymous
Inactive

Hello,

Leading can either be a numeric value or an enumeration ( Leading.AUTO ) which you got.

So you may want to check if leading is set that wey and if so compute the leading based on font size and autoLeading value:

[pre]
var sel = app.selection[0];
var leading = sel.leading;
leading==Leading.AUTO && leading = sel.pointSize*sel.autoLeading/100;
alert (“leading is worth:”+leading );
[/pre]

FWIW

Loic
http://www.ozalto.com

This article was last modified on February 16, 2017

Comments (0)

Loading comments...