Be more verbose re glyphs

This commit is contained in:
Behdad Esfahbod 2013-07-23 23:12:06 -04:00
parent 8998700990
commit 240d7e7dee

View File

@ -964,6 +964,8 @@ if __name__ == '__main__':
glyphs = unique_sorted (glyph_names)
del glyph_names
lapse ("compile glyph list")
if verbose:
print "Glyphs:", glyphs
glyphs_requested = glyphs
if 'GSUB' in font:
@ -973,6 +975,7 @@ if __name__ == '__main__':
glyphs = font['GSUB'].closure_glyphs (glyphs)
if verbose:
print "Closed glyph list over 'GSUB': %d glyphs after" % len (glyphs)
print "Glyphs:", glyphs
lapse ("close glyph list over 'GSUB'")
glyphs_gsubed = glyphs
@ -980,9 +983,11 @@ if __name__ == '__main__':
if 'glyf' in font:
if verbose:
print "Closing glyph list over 'glyf': %d glyphs before" % len (glyphs)
print "Glyphs:", glyphs
glyphs = font['glyf'].closure_glyphs (glyphs)
if verbose:
print "Closed glyph list over 'glyf': %d glyphs after" % len (glyphs)
print "Glyphs:", glyphs
lapse ("close glyph list over 'glyf'")
else:
glyphs = glyphs