From bbad70ef8a58a5e98ee303ee7198938f2fc14d68 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 16 Dec 2023 01:32:46 -0700 Subject: [PATCH] [VARC] bool(Vector) is useless... :( --- Lib/fontTools/ttLib/ttGlyphSet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/ttGlyphSet.py b/Lib/fontTools/ttLib/ttGlyphSet.py index 1754de7b3..a026dda41 100644 --- a/Lib/fontTools/ttLib/ttGlyphSet.py +++ b/Lib/fontTools/ttLib/ttGlyphSet.py @@ -302,11 +302,11 @@ class _TTGlyphVARC(_TTGlyph): locationValues, transformValues = comp.getComponentValues() if comp.locationVarIndex != NO_VARIATION_INDEX: - assert locationValues + assert len(locationValues) locationDeltas = instancer[comp.locationVarIndex] locationValues = list(locationValues + locationDeltas) if comp.transformVarIndex != NO_VARIATION_INDEX: - assert transformValues + assert len(transformValues) transformDeltas = instancer[comp.transformVarIndex] transformValues = list(transformValues + transformDeltas)