Copy link to clipboard
Copied
Hi All,
Suppose I open the photoshop file(.psd) and font is missing in the layer. Photoshop shows error dialog box. Can automation plug-in get any kind of notification regarding this font missing in layer ?
I want to do some stuff if font is missing in the layer.
Any idea/logic ?
Thanks,
Amar
Copy link to clipboard
Copied
It would be nice if the warnings came back wouldn't it. That would be some major undertaking as Photoshop is not set up for that. We only give back the 'what we did' results or an error code now. And I don't think you can get the information from the text layers to see that they are displaying the yellow warning icon either.
You might try looking at the font in use for the text layer and comparing that to the known font list for Photoshop.
Copy link to clipboard
Copied
Hi,
Thanks Tom for the response and idea. I can now check whether the font used in text layer is present or not by checking in font list for photoshop.
Now I am stuck in another point: load font (saved in local folder) in the photoshop in runtime. Can we update the font list of the photoshop by automation plug-in ?
I can get font list from descriptor using "kfontListStr", update the lists like "keyFontName", "fontPostScriptName", "fontFamilyName" and call
"sPSActionControl->Play(&result, eventSet, descSet, plugInDialogSilent);".
But at the moment its returning error code and I don't really know if these are enough to update font list in photoshop.
If this can't be done by automation plug-in then let me know some idea on how to solve loading font in photoshop in runtime.
Thanks,
Amar