Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cannot change font of ScriptUI controls

New Here ,
Feb 10, 2017 Feb 10, 2017

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?

TOPICS
Scripting
878
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Engaged ,
Feb 10, 2017 Feb 10, 2017
LATEST

Hi, kg93420415​!

ScriptUI ceased to support the font settings for widgets with version CC2014

Probably they want you to quickly switched to HTML / CSS / JS Extension Panels

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines