Skip navigation
Currently Being Moderated

Script UI default font on a Mac?

May 19, 2012 2:49 PM

Hi,

 

I'd like to know what the default font is on the Mac for ScriptUI

windows, when targeting the ESTK.

 

For Windows it's SegoeUI.

 

The following script should return the font:

 

w = new Window("dialog");

alert(w.graphics.font);

 

Could someone with a Mac do me a favour and run that script from the

ESTK, with the ESTK targeted? An indication of ESTK version would be

helpful as well, I guess, if it's changed in the course of the various CS's.

 

Many thanks,

Ariel

 

 
Replies
  • Currently Being Moderated
    May 19, 2012 6:53 PM   in reply to [Ariel]

    Lucida Grande at 13pts inside InDesign, 11pts when run from the ESTK itself. That's the same on my ESTK 3.0.0.14 (CS4) and 3.5.0.52 (CS5).

     

    Also the same as alerts, by the way:

     

    Screen Shot 2012-05-20 at 3.46.50 AM.png

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 5:23 AM   in reply to [Ariel]

    You might want to keep in mind that the main UI fonts on the Mac are specified not by name but by role; they can change with OS version. So there is system font, bold system font, control content font, label font, menu font, etc. I'm presuming ESTK is specifying them this way.

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 2:30 PM   in reply to Shane Stanley

    Shane, the JS Tool guide does not mention these standard fonts by name; SUI for Dummies mentions 'dialog', 'window', and 'palette'. (I have no idea where Peter Kahrel got those names from.) All three of'em return "Lucida Grande:13" on my Mac (CS4).

     

    None of the others you suggested return anything useful -- it just echoes the same word, which is SUI's way of saying "whatever you want, dude" for a font name it does not recognize:

     

    whatever.png

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 3:02 PM   in reply to [Jongware]

    > I have no idea where PK got those names from.

     

    I can't remember where I got that from. Maybe an example I saw somewhere, maybe Marc whispered it into my ear -- not a clue.

     

    Peter

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 4:00 PM   in reply to [Jongware]

    [Jongware] wrote:

     

    Shane, the JS Tool guide does not mention these standard fonts by name

    Yep, I didn't think it would. i'm really just pointing out that under the hood it probably uses one or more of them rather than hard-wired font names, so the actual font name can theoretically change.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)