[varLib] Skip empty glyphs
Untested. https://github.com/fonttools/fonttools/pull/1368#issuecomment-437082906
This commit is contained in:
parent
14e8c06565
commit
446ee2a4d0
@ -294,6 +294,8 @@ def _add_gvar(font, masterModel, master_ttfs, tolerance=0.5, optimize=True):
|
||||
for glyph in font.getGlyphOrder():
|
||||
|
||||
allData = [_GetCoordinates(m, glyph) for m in master_ttfs]
|
||||
# Skip empty glyphs as well
|
||||
allData = [None if d is None or not d[0] else d for d in allData]
|
||||
model, allData = masterModel.getSubModel(allData)
|
||||
|
||||
allCoords = [d[0] for d in allData]
|
||||
|
Loading…
x
Reference in New Issue
Block a user