Skip to content

Commit

Permalink
Now with emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroarilla committed Apr 18, 2018
1 parent b6b3bae commit 1ad1039
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Vertical metrics reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
print "Vertical metrics reporter @ " + time.strftime("%H:%M:%S")

metricKeys = {"typoAscender" : [], "typoDescender" : [], "typoLineGap" : [], "hheaAscender" : [], "hheaDescender" : [], "hheaLineGap" : [], "winDescent" : [], "winAscent" : []}
yep = "\U00002705"
nope = "\U0000274C"

for i in range(0,len(Glyphs.fonts)):
for master in Glyphs.fonts[i].masters:
Expand All @@ -23,9 +25,10 @@
for sublist in list:
compare.append(sublist[2])
if compare[1:] == compare[:-1]:
print "\t" + key + " OK!"
print "\t" + yep.decode('unicode-escape') + " " + key
else:
print "\t" + key + ": NO!"
print "\t" + nope.decode('unicode-escape') + " " + key
for pair in list:
print "\t\t" + str(pair[2]) + " @ " + pair[0] + "/" + pair[1].name

print "Vertical metrics reported."

0 comments on commit 1ad1039

Please sign in to comment.