Copy link to clipboard
Copied
Is there a script that lists the font version of a text layer in a PSD?
Not the font family, but the version. For example SF Pro version version 19, versus SF Pro version 22.
Sometimes I will receive a PSD from a client that has a text layer with the same font family that I have, but a different font version. I can tell this because that text layer has an exclamation point warning sign on that layer, and the following message pops up:
"Some text layers might beed to be updated before they can be used for vector based output. Do you want to update the layers now?".
I click update, and I'm able to continue working. However, I believe someone creating the PSD has an older or newer version of the font installed on their computer. So I'm wondering if there is a way to identify what version photoshop is expecting.
I'm an early beginner at scripting, so I'm not sure if listing the version is even possible. I did find a script called 'list-fonts' that lists the font family. This is close to what I'm looking for. I'm wondering if there is a way to take it a step further so it lists the version.
https://github.com/frontendbeast/list-fonts
Thank you!
Copy link to clipboard
Copied
»version« does not seem to be a property one can determine via a Photoshop Script directly.
What is the »fontAvailable«-property for a font that needs updating?
Key 0 = styleSheetHasParent: DescValueType.BOOLEANTYPE true
Key 1 = fontPostScriptName: DescValueType.STRINGTYPE MyriadPro-Regular
Key 2 = fontName: DescValueType.STRINGTYPE Myriad Pro
Key 3 = fontStyleName: DescValueType.STRINGTYPE Regular
Key 4 = fontScript: DescValueType.INTEGERTYPE 0
Key 5 = fontTechnology: DescValueType.INTEGERTYPE 0
Key 6 = fontAvailable: DescValueType.BOOLEANTYPE true
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more