Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Mar 14, 2023
1 parent e43bc89 commit 9c77364
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Lib/gftools/scripts/check_vtt_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ def glyphs_points(font):
{'a': [(0,0), (10,10)], 'b': [(10,10, (20,20))]},
'''
res = {}
for glyph in font:
if hasattr(font[glyph], 'coordinates'):
font[glyph] = font[glyph].coordinates
res[glyph] = font[glyph].coordinates
elif font[glyph].isComposite():
font[glyph] = [c.glyphName for c in font[glyph]]
res[glyph] = [c.glyphName for c in font[glyph].components]
else:
font[glyph] = None
return font
res[glyph] = None
return res


def compare_glyph_count(font1, name1, name2):
Expand Down

0 comments on commit 9c77364

Please sign in to comment.