• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
11

InDesign script that lists used fonts and their foundry

Explorer ,
Oct 30, 2023 Oct 30, 2023

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.

TOPICS
How to , Scripting

Views

361

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2023 Oct 30, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 31, 2023 Oct 31, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 31, 2023 Oct 31, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 01, 2023 Nov 01, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 01, 2023 Nov 01, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 01, 2023 Nov 01, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

quote

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 01, 2023 Nov 01, 2023

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).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

quote

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

LATEST

Thank you! Location property will work after the script removes the path info. That is what I was looking for!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines