fonttools/Scripts/RoboFabUtils/TestFontEquality.py
Tal Leming ea39f12120 Merged ufo2 branch r95:170 into the trunk.
git-svn-id: http://svn.robofab.com/trunk@171 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2009-02-28 15:47:24 +00:00

28 lines
495 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.postscriptFullName`)
results.append(line)
for i in range(len(af)):
one = af[i]
line = []
line.append(af[i].info.postscriptFullName)
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