When converting a PSD to HTML/CSS, it’s necessary to get a list of all of the fonts used. There are many tools that help in analyzing the layers of a PSD and Creative Suite has great tools for exporting the information for each of the layers.
However, one problem I’ve run into is finding a list of all of the fonts used in a PSD. Sometimes, I’ll open up a PSD and find that my system doesn’t have a particular font that’s used in the PSD. I then have to go through each layer individually to find the particular text layer with that font.
Another problem I’ve run into is the when preparing a photoshop file for coders to code out, I want to make sure we have the licenses for each of the fonts we’re going to embed. Again, we either have to open up each text layer to inspect the fonts or hope for the best. (A solution to this is to use Character & Paragraph Styles – this helps standardize the look of all of the text in the PSD and I highly recommend it. )
Anyway, I’ve finally found a great Photoshop Script that will loop through each text layer and export the name, content, font name, etc, into a text file. Hooray!
Here’s the direct link to GitHub. I’ve also modified the script slightly to include the name of each layer and PX instead of REM.