Hi,
try this simple piece fo code. Id saves a text file filled with complete list od used fonts on the same level as original INDD file.
In my opinion it is the simplest and most flexible way to have a font list. You can use it with INDD or/and e.g. Excell.
Best regards Robert
if ( !app.documents.length ) { alert ( ‘Open document, please !’ ); exit(); }
var doc = app.activeDocument, dp = doc.filePath.fsName, dn = doc.name.slice(0,-5), fonts = doc.fonts.everyItem().name;
var raport = fonts.join( ‘\r’ );
saveTextFile ( raport );
function saveTextFile ( text ) {
var tf = new File ( dp + ‘/’ + dn + ‘_FontList.txt’ );
tf.open ( ‘w’ ); tf.encoding = ‘utf-8’; tf.write( text ); tf.close();
}