Skip to main content
Inspiring
July 7, 2026
Question

How to Change One Font to Another in All Styles Using a Script

  • July 7, 2026
  • 2 replies
  • 27 views

How to make a script that changes one font to another in all styles (over 100 styles) in large catalogue file. Has anyone made such a script and would be so kind to share it?

    2 replies

    rob day
    Community Expert
    Community Expert
    July 7, 2026

    Hi ​@marikap3737523 , If you want to change all of the document’s paragraph styles to the same applied font, then maybe something like this:

     

    var f = app.fonts.itemByName("Minion Pro	Regular");
    app.documents[0].paragraphStyles.everyItem().properties = {appliedFont:f}

     

    Note that the name string has to be exact, in the above example there is a tab between Minion Pro and Regular

    jmlevy
    Community Expert
    Community Expert
    July 7, 2026

    Hi ​@marikap3737523 

    Isn't the native function (find font) sufficient? If you tick the appropriate checkbox, you’ll replace the font in the style definition.