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
This commit is contained in:
jvr 2002-06-06 19:59:31 +00:00
parent 83eca43740
commit 675d6c3fc9

View File

@ -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', [