For example, following script:
var w = new Window('dialog');
var myStatic = w.add('statictext', undefined, "Hello World!");
//myStatic.graphics.font = "Arial-Bold:24";
//myStatic.graphics.font = "Verdana:16";
//myStatic.graphics.font = "Tahoma:24";
//myStatic.graphics.font = ScriptUI.newFont ("Tahoma", "Bold", 30);
//myStatic.graphics.font = ScriptUI.newFont (myStatic.graphics.font.name, "Bold", myStatic.graphics.font.size);
//myStatic.graphics.font.size = 30;
w.show();
All commented lines are my different behaviours to change a font of statictext, or at least its size. All them do not working in my AI CC 2015.
I note what whole UI in my AI have not system UI look&feel, but AI's custom, i.e. dark background, gray text and etc. Is it matter? How to workaround it?