I need to find software that can detect duplicate fonts out of a folder, and be able to tell if a font file is corrupted. Needs to be command line so I can script it for situations, although if you know of a GUI one that can take scripts or something of the sort that could possibly work as well.
How to check corrupt and duplicated fonts on Linux
command linefonts
Related Question
- Linux – way to make PhantomJS (or any headless browser) use an alternate font cache
- Debian – way to know/tell which fonts are used in a pdf file
- Linux – How to make all fonts with all font faces show a sample string for comparison
- Debian – Easily install a font per language who haven’t any yet, on Debian 10
Best Answer
I don't know how you could detect corrupt fonts but since font files are just files like any other, you can search through your directory and check for duplicate md5sums to find the duplicates.
This can be scripted fairly easily, for example, in Perl:
I created 4 duplicate fonts on my system and got this output:
Still, if all you end up doing is finding duplicate files, there are far more sophisticated programs that can deal with this better and faster. See the answers here.