From 4cbf6ae1c40c3f1616f6ff7281d6ffb1814f32c9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Apr 2021 16:55:56 -0600 Subject: [PATCH] [TupleVariation] Minor --- Lib/fontTools/ttLib/tables/TupleVariation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/TupleVariation.py b/Lib/fontTools/ttLib/tables/TupleVariation.py index 0019e2192..dd7d15a1b 100644 --- a/Lib/fontTools/ttLib/tables/TupleVariation.py +++ b/Lib/fontTools/ttLib/tables/TupleVariation.py @@ -346,9 +346,8 @@ class TupleVariation(object): return bytearr @staticmethod - def encodeDeltaRunAsZeroes_(deltas, offset, bytearr): + def encodeDeltaRunAsZeroes_(deltas, pos, bytearr): runLength = 0 - pos = offset numDeltas = len(deltas) while pos < numDeltas and runLength < 64 and deltas[pos] == 0: pos += 1