Copy link to clipboard
Copied
Hello, is there a script that does the above? Similar to a Show Document Font Info or Data script that creates a report, specifically one that indicates foundry information if available in the metadata?
Thank you.
Copy link to clipboard
Copied
I don't see the InDesign API providing any foundry information for font. The only details it can export are show in the link below
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Font.html
One script that exports the available font information is from @Peter Kahrel
https://creativepro.com/files/kahrel/indesign/show_fonts.html
-Manan
Copy link to clipboard
Copied
You can also read out additional information via the font file. However, not all entries are available for every font.
Example:
Myriad Pro Bold
Font Family: Myriad Pro
Font Subfamily: Bold
Full Name: MyriadPro-Bold
PostScript Name: MyriadPro-Bold
Unique ID: 2.102;ADBE;MyriadPro-Bold;ADOBE
Version: Version 2.102;PS 2.000;hotconv 1.0.67;makeotf.lib2.5.33168
Manufacturer: Adobe Systems Incorporated
Manufacturer URL: http://www.adobe.com/type
Designer: Robert Slimbach and Carol Twombly
Trademark: Myriad is either a registered trademark or a trademark of Adobe Systems Incorporated in the United States and/or other countries.
Copyright: © 1992, 1994, 1997, 2000, 2004 Adobe Systems Incorporated. All rights reserved.
License URL: http://www.adobe.com/type/legal.html
But I don't know any existing script either. That would have to be created individually.
Roland
Copy link to clipboard
Copied
Hi @Roland Dreger,
How do you see this information? Is it in some sort of metadata with the font? I opened some fonts as binary file but could not see this information just a small piece of it at most.
-Manan
Copy link to clipboard
Copied
Hi Manan,
in UXP, the font file can be read as an ArrayBuffer and parsed with a special library, e.g. opentype.js.
Roland
Copy link to clipboard
Copied
Hi Roland,
So from what I understand, it is not possible to create an InDesign script which generates a report listing font file names and also font foundry information from the metadata? Only the postscript name and font name, correct?
-Mike
Copy link to clipboard
Copied
Hi Mike
You can only read out what the font manufacturer has written in. Font manufacturer and foundry may not always be the same. You can try it yourself with your fonts here: https://fontdrop.info
Roland
Copy link to clipboard
Copied
Hi Roland,
So from what I understand, it is not possible to create an InDesign script which generates a report listing font file names and also font foundry information from the metadata? Only the postscript name and font name, correct?
-Mike
By @michaelr26894937
You cannot retrieve the font foundry info using solely InDesign script API. As @Roland Dreger mentioned, you can do this by using external libraries which you can call from your script.
Copy link to clipboard
Copied
Thank you. And I assume that the same goes for retrieving the entire font filename and extention (Times New Roman.ttf for example).
Copy link to clipboard
Copied
And I assume that the same goes for retrieving the entire font filename and extention (Times New Roman.ttf for example).
By @michaelr26894937
You can retrieve both of them via the location property.
Copy link to clipboard
Copied
Thank you! Location property will work after the script removes the path info. That is what I was looking for!