Translate Ideas and Comments
Choose language:
There was an error during translation


My feedback

  1. 2 votes
    Sign in
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  Illustrator (Desktop) Bugs » SDK and Scripting  ·  Flag idea as inappropriate…  ·  Admin →
    LEMONNIER Philippe supported this idea  · 
    An error occurred while saving the comment
    LEMONNIER 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 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

Feedback and Knowledge Base