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

How to uncheck substituted fonts in preferences menu in indesign using javascript

Engaged ,
Apr 13, 2023 Apr 13, 2023

Copy link to clipboard

Copied

KarthikSG_0-1681395133424.png

Is there any way to uncheck substituted fonts in preferences?

or what is the menu action id to uncheck substituted fonts in indesign javascript?

 

TOPICS
How to , Scripting

Views

538

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 ,
Apr 13, 2023 Apr 13, 2023

Copy link to clipboard

Copied

I can't answer the question about javascript, but I have to ask why you would want to remove one of the most important warnings a user can have.

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
Engaged ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

You are right but I was requested to do so!

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 ,
Apr 13, 2023 Apr 13, 2023

Copy link to clipboard

Copied

Peter S's question stands, of course, but anyway, the script call to disable highlighting of substitited fonts is 

app.textPreferences.highlightSubstitutedFonts = false;

Peter K.

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
Engaged ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

I actually tried this one also but it does not worked for me! As the highlights were made as conditional text highlight, So I ingnored this attempt!

Thanks for your response and effort @Peter Kahrel 

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 ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

LATEST

Hi @Karthik SG  , both the application and document have a textPreferences object, so you might have to set either the application’s, the document’s, or both:

 

 

app.textPreferences.highlightSubstitutedFonts = false;
app.activeDocument.textPreferences.highlightSubstitutedFonts = false;

 

 

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 ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

the highlights were made as conditional text highlight

 

But you asked about setting an InDesign preference, now you're talking about a text condition. But anyway, why bother? Both are visible only in the normal screen mode. If you don't want to see those highlights, set the display to preview.

 

 

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