fonttools/Scripts/RoboFabUtils/TestFontEquality.py
Erik van Blokland 617945dcf1 The scripts folder for FontLab as they shipped with Fab 1.1.1.
git-svn-id: http://svn.robofab.com/trunk@22 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-16 08:14:00 +00:00

28 lines
475 B
Python

from robofab.world import AllFonts
print "Compare all fonts in the AllFonts list with each other:"
af = AllFonts()
results = []
line = []
for n in af:
line.append(`n.info.fullName`)
results.append(line)
for i in range(len(af)):
one = af[i]
line = []
line.append(af[i].info.fullName)
for j in range(len(af)):
other = af[j]
line.append(`one==other`)
if one == other:
print "same: ", one.path, other.path
results.append(line)
for n in results:
print n