Tidy mixed tabs and spaces

This commit is contained in:
Andrew Clemons 2017-03-07 18:13:40 +13:00
parent 7159f45c58
commit 701acb4282

View file

@ -33,7 +33,6 @@ def get_glyph_name_from_gsub (string, font, cmap_dict):
if ligature.Component == rest_of_glyphs: if ligature.Component == rest_of_glyphs:
return ligature.LigGlyph return ligature.LigGlyph
def div (a, b): def div (a, b):
return int (round (a / float (b))) return int (round (a / float (b)))
@ -490,8 +489,7 @@ By default they are dropped.
glyph_imgs[glyph_id] = img_file glyph_imgs[glyph_id] = img_file
if "verbose" in options: if "verbose" in options:
uchars_name = ",".join (["%04X" % ord (char) for char in uchars]) uchars_name = ",".join (["%04X" % ord (char) for char in uchars])
# print "Matched U+%s: id=%d name=%s image=%s" % ( # print "Matched U+%s: id=%d name=%s image=%s" % (uchars_name, glyph_id, glyph_name, img_file)
# uchars_name, glyph_id, glyph_name, img_file)
advance += glyph_metrics[glyph_name][0] advance += glyph_metrics[glyph_name][0]
w, h = PNG (img_file).get_size () w, h = PNG (img_file).get_size ()