Skip navigation
Currently Being Moderated

How to change statictext's font size and button's font size in UI?

Mar 23, 2012 12:50 AM

Hi,

How to change statictext's font size and button's font size in UI?

 

thks.

goldbridge

 
Replies
  • Currently Being Moderated
    Mar 23, 2012 1:26 AM   in reply to goldbridge
    var w = new Window ("dialog");
    var s = w.add ("statictext", undefined, " 30 Point Static");
    var s2 = w.add ("statictext", undefined, " 100 Point Static");
    // the third argument is the font size
    s.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 30);
    s2.graphics.font = ScriptUI.newFont ("Helvetica", "Bold", 100);
     
    w.show ();
    

    See the example above.

    See also Peter Karhels Guide to UI. Very recommended.

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

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 23, 2012 1:30 AM   in reply to goldbridge

    Just saw in the guide there page 61 that you can use.

     

    s2.graphics.font = "Helvetica:125";
    

    Where 125 is the font size.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points