• 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 replace Missing Font in InDesign using CEP extension

Community Beginner ,
Aug 24, 2022 Aug 24, 2022

Copy link to clipboard

Copied

Hi 

I have a word doc which has [sans-serif] font which is missing in InDesign. If I try to place this document using InDesign then I get an option to replace the font with any of the available fonts. Is there any way to replace the missing fonts with any available font using CEP extension?

TOPICS
How to , Import and export , Scripting

Views

133

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 ,
Aug 24, 2022 Aug 24, 2022

Copy link to clipboard

Copied

Hi @devs27984525 ,

what did you do so far in your code to identify missing fonts in your document?

 

Note: If you inspect a textStyleRange and look into appliedFont.status you should see value NOT_AVAILABLE when it's missing. Values for properties fontFamily and fontStyleName should be there to identify the name and the style.

 

Because you do not want to replace it with the original you could immediately assign a different one that is installed.

 

Regards,
Uwe Laubender
( Adobe Community Professional )

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
Guru ,
Aug 25, 2022 Aug 25, 2022

Copy link to clipboard

Copied

LATEST

I wrote a few scripts for this task.

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