Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 86399

Re: Editing the leading on a created textFrame

$
0
0

Hi t1d2c3,

IMHO you don't need a loop trough all characters.

 

Please try this instead.

var textInfo = app.activeDocument.textFrames.add();
textInfo.name = "textInfo";
textInfo.position = [30,-30];

textInfo.textRange.characterAttributes.autoLeading = false;
textInfo.textRange.characterAttributes.leading = 40;
textInfo.contents = "Abcdef";

 

Have fun

 


Viewing all articles
Browse latest Browse all 86399

Trending Articles