[JS][CS4]List fonts used in the Document
Hi to all scripting gurus,
I have this following script that returns a list of fonts used in the document:
function fontused(){
var fontscoll = document.fonts;
for(var i = 0; i < fontscoll.length; i++){
var font = fontscoll;
alert(font.name);
}
}
The above is working OK my problem is that it also list the fonts used in the placed illustrator files (.eps). Is there some kind of parameter or something that i can use so that it only list the fonts used in the text?
-CharlesD
