mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-08 07:47:59 +00:00
Merge pull request #159 from cclauss/patch-2
Add collect_glyphstr_file_pairs(verbosity=1) param
This commit is contained in:
commit
a4ddd5b44f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue