Skip to main content
Participant
August 24, 2022
Question

How to replace Missing Font in InDesign using CEP extension

  • August 24, 2022
  • 2 replies
  • 181 views

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?

This topic has been closed for replies.

2 replies

Kasyan Servetsky
Legend
August 25, 2022

I wrote a few scripts for this task.

Community Expert
August 25, 2022

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 )