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

Bold text on CC2018

New Here ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

This :

EX.add ("statictext", undefined,"",{name: "EXname"});

EX.EXname.graphics.font =  "-Bold:14";

or this :

EXname.graphics.font = ScriptUI.newFont ("dialog", "Bold", 14);

seems not to work on CC2018 ! (works on CS6)

Have you a solution ?

Thank you

TOPICS
Scripting

Views

661

Translate

Translate

Report

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
Community Expert ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

Hi alband78680803 ,

no solution. It is broken with InDesign CC version 9 and beyond.

See:

Re: Can’t seem to be able to change statictext font size

Regards,
Uwe

Votes

Translate

Translate

Report

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
Community Expert ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

Here an example:

ScriptUI fonts used with InDesign CS6:

ScriptUI-Fonts-CS6.PNG

Same code executed with InDesign CC 2019:

ScriptUI-Fonts-CC-2019.PNG

Regards,
Uwe

PS: Sample code from here where I did not use Gil Sans example because I had not installed the font:

Re: How to change size and color of "staticText"??

Votes

Translate

Translate

Report

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
New Here ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

That's what seemed to me... what a shame !
Thank you !

Votes

Translate

Translate

Report

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
Community Expert ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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
New Here ,
May 10, 2019 May 10, 2019

Copy link to clipboard

Copied

LATEST

And is there a way to use superscript ? and how ? Thank you

Votes

Translate

Translate

Report

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