Skip to content

Instantly share code, notes, and snippets.

@behdad
Created June 18, 2018 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save behdad/7c757db959bbbc46f86764489ed1a748 to your computer and use it in GitHub Desktop.
Save behdad/7c757db959bbbc46f86764489ed1a748 to your computer and use it in GitHub Desktop.
diff --git a/Lib/fontTools/varLib/__init__.py b/Lib/fontTools/varLib/__init__.py
index 5f0f9bd2..1fd0320b 100644
--- a/Lib/fontTools/varLib/__init__.py
+++ b/Lib/fontTools/varLib/__init__.py
@@ -289,7 +289,10 @@ def _add_gvar(font, model, master_ttfs, tolerance=0.5, optimize=True):
gvar.reserved = 0
gvar.variations = {}
- for glyph in font.getGlyphOrder():
+ glyphs = font.getGlyphOrder()
+ for i,glyph in enumerate(glyphs):
+ if i % 10 == 0:
+ log.info("Glyph %d of %d" % (i, len(glyphs)))
allData = [_GetCoordinates(m, glyph) for m in master_ttfs]
allCoords = [d[0] for d in allData]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment