Copy link to clipboard
Copied
Hi,
I am working on InDesign 5.5 plugin, which is used to handle missing fonts of document. It Displays a List of missing fonts in a dialog box and user can Activate the missing font.
If user opens a document, which contains missing fonts, then InDesign throws the missing font Information in a Dialog box(Default, provided by In Design).In my plugin, On opening the document, I fetch the missing font info and activate the missing font (I am doing this work before opening document by using kBeforeCloseDocSignalResponderService signal). But still InDesign shows the missing font Dialog Box on opening the document however I already activated the missing fonts. I am not getting the reason of why InDesign is behaving like this?
If I put a Alert message(with ‘OK’ button) just after activating the font and before opening the document, Then document is opening properly(without default Missing font info Dialog Box). It means this is behaving correctly. I am not getting why this Alert message is creating a difference. I need this functionality without using any extra alert message
Regards,
Harsh
Copy link to clipboard
Copied
What do you intend to say when saying activating the font. Of what i get out of your question, your problem is that InDesign is not able to identify and load the font before the document is actually opened.
My observations for the behavior of Indesign while loading the font is that, InDesign needs to be idle for some time before it can pick up and load the newly added font. And when you are displaying the dialog box you are indeed giving InDesign idle time before the user clicks the ok button and hence the font gets loaded and you see the correct behavior.
Manan Joshi
- Efficient InDesign Solutions
- MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php
Copy link to clipboard
Copied
Hi Manan,
Thanks for your response.
Activating a font means installing a font. Actually I have code to activate/deactivate any font in system and it is working fine also.
Yes, you are correct that by putting Dialog box, InDesign is getting some time to pick up the newly added font. But i don't know that how to do this without Dialog box. I tried to use sleep() also but it’s not working.
I think, We need to refresh the document somehow after activating the font. but I dont know how.
Regards,
Harsh Saraswat
Copy link to clipboard
Copied
Hi Harsh,
If you place the font's inside the Font folder parallel to the plugin folder, InDesign will automatically pick up the missing fonts if present in that folder as soon as its gets some idle time to laod the fonts.
What you could do is you can place all the missing fonts of the document in this hot folder and they will be loaded.
-Manan
Find more inspiration, events, and resources on the new Adobe Community
Explore Now