![upload imag to find the font used upload imag to find the font used](https://www.fancytextpro.com/banners/big-text-generator.jpg)
I will also submit a pull request to var p = new ActionReference() Var n = layerStyles.getObjectValue(countStyles).getObjectValue(stringIDToTypeID('textStyle')).getString(stringIDToTypeID('fontPostScriptName')) Īlert(d.length +' fonts found\n'+d.join('\n')) Īlert('No fonts used in the active document.',) īased on David's original answer (DetectFonts.jsx), I have modified the script to fix the issue reported by Drew in the comments: Find all the fonts used in a Photoshop file.įollow the original instructions but use this script body instead - only difference is a few null checks (presumably either a photoshop version difference or something to do with missing data on particular object types, likely designer or operating system specific) LayerStyles = descLayer.getObjectValue(stringIDToTypeID('textKey')).getList(stringIDToTypeID('textStyleRange')) If(!descLayer.hasKey(stringIDToTypeID( 'textKey' ))) continue R.putIndex( charIDToTypeID( 'Lyr ' ), c ) Var c = executeActionGet(p).getInteger(charIDToTypeID('NmbL'))+1, P.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ) Name it whatever you want, such as "Detect Fonts.jsx" var p = new ActionReference()
![upload imag to find the font used upload imag to find the font used](https://i.pinimg.com/originals/7b/e9/2d/7be92db66cf45be40cabac99c5c53352.jpg)
![upload imag to find the font used upload imag to find the font used](https://cdn.dribbble.com/users/1670005/screenshots/11877460/media/612338a4eec6e87b2c57c1dd18b94b4a.jpg)
Save this script as a new file in your Photoshop > Presets > Scripts folder.