Merge pull request #159 from cclauss/patch-2

Add collect_glyphstr_file_pairs(verbosity=1) param
This commit is contained in:
dougfelt 2017-08-27 12:53:40 -07:00 committed by GitHub
commit a4ddd5b44f

View file

@ -171,7 +171,7 @@ class FontBuilder(object):
self.svgs.append(svg_record) 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 """Scan files with the given prefix and extension, and return a list of
(glyphstr, filename) where glyphstr is the character or ligature, and filename (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 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 ex and ex.search(image_file):
if verbosity > 1: if verbosity > 1:
print "Exclude %s" % image_file print("Exclude %s" % image_file)
ex_count += 1 ex_count += 1
continue continue