The fonts available to Photoshop are listed in app.fonts
. To list all fonts to the Extendscript Tools console, execute:
for (i=0; i< app.fonts.length; i++) {
$.writeln(app.fonts[i].name);
}
You can use the app.fonts.getByName('String')
method to call the first font in the app.fonts
array that matches String
in its name.