Copy link to clipboard
Copied
Hi,
I am getting font name for missing font. When getting, could not able to get font postscript name and fontstyle name for few fonts because its don't have postscript name visually. Few fonts, showing style name but could not able to get the style name. So i tried to get font name but its returning style name twice. How can i get font name with fontstyle name or postscript name.
Code :
var myDoc = app.activeDocument;
var allFontsStr = "";
for(var i = 0; i < myDoc.fonts.length; i++)
{
var cFont = myDoc.fonts;
allFontsStr += cFont.name +"\n";
//allFontsStr += cFont.fontFamily + " - " + cFont.fontStyleName +"\n";
}
alert("allFontsStr " +allFontsStr)
exit()
Thanks,
Sudha K
Copy link to clipboard
Copied
Check this threads..
Re: How can select indesign Font Name into doc file
The same question you asked in the below thread..
Copy link to clipboard
Copied
Hi,
I have checked and also the output of the below link is showing empty for that specific occurences..
Re: How can select indesign Font Name into doc file
I have checked and posted with screenshots with each occurrence of issue... Again now i have checked the given links by you... I need to get postscript font name or font name (family with style) for documents fonts. Not for paragraphs style.
- Sudha K
Copy link to clipboard
Copied
Just want to make sure, your previous thread have some codes, is it not working?
Copy link to clipboard
Copied
Hi,
Question may be the same but there is an issue to getting fonts name with style / postscript name of the documents fonts. There is way to get that without any issue??
- Sudha K
Copy link to clipboard
Copied
How can i get the font details for missing fonts??
Can anyone help me ....