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");
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.
Thanks Jongware! Windows (7) comes with Lucida Sans Unicode. It looks similar.
PS Interesting forum layout. I haven't been here recently on the web -- I came to mark this as answered, but I'm not seeing an option for that. Maybe because the question was asked via email.
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.
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:
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.