Skip to content

LEMONNIER Philippe

My feedback

1 result found

  1. 2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    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 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

Feedback and Knowledge Base