From 675d6c3fc93f46176733e1994064fa0a6fc7e5c0 Mon Sep 17 00:00:00 2001 From: jvr Date: Thu, 6 Jun 2002 19:59:31 +0000 Subject: [PATCH] increment progress less frequently, it was too costly... git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@273 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/tables/_g_l_y_f.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/_g_l_y_f.py b/Lib/fontTools/ttLib/tables/_g_l_y_f.py index 39a2f0ab3..25803d82b 100644 --- a/Lib/fontTools/ttLib/tables/_g_l_y_f.py +++ b/Lib/fontTools/ttLib/tables/_g_l_y_f.py @@ -70,10 +70,13 @@ class table__g_l_y_f(DefaultTable.DefaultTable): writer.comment("The xMin, yMin, xMax and yMax values\nwill be recalculated by the compiler.") writer.newline() writer.newline() + counter = 0 + progressStep = 10 for glyphName in glyphNames: - if progress: + if not counter % progressStep and progress is not None: progress.setlabel("Dumping 'glyf' table... (%s)" % glyphName) - progress.increment() + progress.increment(progressStep) + counter = counter + 1 glyph = self[glyphName] if glyph.numberOfContours: writer.begintag('TTGlyph', [