From 74cab7ae1fecfcaaa2e7edb67b4e7996147287af Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 17 Feb 2023 15:34:57 -0700 Subject: [PATCH] [qu2cu] Fix --- Lib/fontTools/qu2cu/qu2cu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/qu2cu/qu2cu.py b/Lib/fontTools/qu2cu/qu2cu.py index 4c1a65c13..0ea059225 100644 --- a/Lib/fontTools/qu2cu/qu2cu.py +++ b/Lib/fontTools/qu2cu/qu2cu.py @@ -269,7 +269,7 @@ def spline_to_curves(q, tolerance=0.5, all_cubic=False): j = 0 for i in reversed(splits): if not all_cubic and j + 1 == i: - curves.append(q[j : j + 3]) + curves.append(q[j * 2 : j * 2 + 3]) else: curves.append(merge_curves(elevated_quadratics[j:i])[0]) j = i