googlefonts / pyfontaine

Python tool to check font files for language/character set support
https://github.com/googlefonts/pyfontaine
GNU General Public License v3.0
104 stars 20 forks source link

Accept 2+ font files #55

Closed davelab6 closed 9 years ago

davelab6 commented 9 years ago

(I have pyicu installed)

When I run pyfontaine on 2 font files, it errors:

$ pyfontaine a.ttf b.ttf
Traceback (most recent call last):
  File "/usr/local/bin/pyfontaine", line 419, in <module>
    main()
  File "/usr/local/bin/pyfontaine", line 337, in main
    tree = director.construct_tree(fonts)
  File "/usr/local/lib/python2.7/site-packages/fontaine/builder.py", line 141, in construct_tree
    for charmapinfo in font.get_orthographies(self.library):
  File "/usr/local/lib/python2.7/site-packages/fontaine/font.py", line 247, in get_orthographies
    yield CharmapInfo(self, result)
  File "/usr/local/lib/python2.7/site-packages/fontaine/font.py", line 149, in __init__
    self.init_configuration_for_glyphnames()
  File "/usr/local/lib/python2.7/site-packages/fontaine/font.py", line 155, in init_configuration_for_glyphnames
    glyphs = set(glyphnames.pop())
IndexError: pop from empty list
$