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 commentLEMONNIER Philippe commented
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 188.8.131.52 extendScript 4.5.5 scriptUI 6.2.2
windows 10 Famille
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