Created
June 18, 2018 19:13
-
-
Save behdad/7c757db959bbbc46f86764489ed1a748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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