Merge pull request #159 from cclauss/patch-2

Add collect_glyphstr_file_pairs(verbosity=1) param
pull/166/head
dougfelt 2017-08-27 12:53:40 -07:00 committed by GitHub
commit a4ddd5b44f
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class FontBuilder(object):
self.svgs.append(svg_record)
def collect_glyphstr_file_pairs(prefix, ext, include=None, exclude=None):
def collect_glyphstr_file_pairs(prefix, ext, include=None, exclude=None, verbosity=1):
"""Scan files with the given prefix and extension, and return a list of
(glyphstr, filename) where glyphstr is the character or ligature, and filename
is the image file associated with it. The glyphstr is formed by decoding the
@ -199,7 +199,7 @@ def collect_glyphstr_file_pairs(prefix, ext, include=None, exclude=None):
if ex and ex.search(image_file):
if verbosity > 1:
print "Exclude %s" % image_file
print("Exclude %s" % image_file)
ex_count += 1
continue