I'm trying to get certain values of a textbox. For instance, I used dom.getFontMarkup("face") to get the font style. I need to get the value for the text leading. Is it possible?
I noticed that TextAttrs has "leading", but I wasn't sure how it could be used.
Any help would be appreciated.
You could try using :
var text=fw.selection[i].textRuns.textRuns[j].changedAttrs;
var font = text.face;
var size = text.size;
var color = text.fillColor;
var leadingVal=text.leading;
where fw.selection[i] is the ith selected object. If it is a text object, it should return "[object Text]".
Text can have multiple text runs and j is the jth text run.
North America
Europe, Middle East and Africa
Asia Pacific