3 Replies Latest reply on Mar 12, 2014 5:03 AM by Trevorׅ

    Setting font to UI elements not working in InDesign CC

    Jon Indicator

      Hi!

       

      I am working in a script and I want to change the font of a static text.

       

      And it is not working.

       

      I also have tried to create a new script with same code I found in Peter Karel's documentation.

       

      http://www.kahrel.plus.com/indesign/scriptui-2-2.pdf

       

      var w = new Window ("dialog");

      button1 = w.add ("button", undefined, "Default");

      button2 = w.add ("button", undefined, "Bigger");

      button2.graphics.font = "dialog:18";

      w.show ();

       

      or

       

      var w = new Window ("dialog");

      button1 = w.add ("button", undefined, "Default");

      button2 = w.add ("button", undefined, "Bigger");

      button2.graphics.font = ScriptUI.newFont ("dialog", "Bold", 18);

      w.show ();

       

      This code is not working either.

       

      Does anyone have any idea?

      Do you know how this can be solved?

       

      Thanks.

       

      Kind regards!