LEMONNIER Philippe
My feedback
1 result found
-
2 votes
Thanks for sharing the script, we are able to repro the issue at our side & have forwarded it to the engineering team for further isolation.
With Best Regards,
RaghuveerLEMONNIER Philippe supported this idea ·An error occurred while saving the comment
/*
when I run this script in Illustrator CC it crashes. It doesn't crash if I try to change another of the characterAttributes.
Crash of illustrator 2018 CC 22.1 (64 bit)
script runs from extendScript toolkit 4.0.0.1 extendScript 4.5.5 scriptUI 6.2.2
windows 10 Famille
*/
docRef= app.activeDocument;
mySelection = docRef.textFrames ;
lng = mySelection.length ;
for (var i = 0; i<lng; i++)
{
mySelection[i].textRange.characterAttributes.textFont = textFonts.getByName("OpenSans-Regular") ;
}
//in attachment the fullScript and the ai file