From 26f590ddaad978f47e74ab598cf3b3aa3cf6ba38 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 20 Feb 2023 16:22:06 -0700 Subject: [PATCH] [qu2cu] Adjust comment --- 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 361c20b73..0e9de201d 100644 --- a/Lib/fontTools/qu2cu/qu2cu.py +++ b/Lib/fontTools/qu2cu/qu2cu.py @@ -274,7 +274,7 @@ def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False): costs: cumulative list of encoding cost of q in terms of number of points that need to be encoded. Implied on-curve points do not contribute to the cost. If all points need to be encoded, then - costs will be range(len(q)+1). + costs will be range(1, len(q)+1). """ assert len(q) >= 3, "quadratic spline requires at least 3 points"