From 68c735aa76ed8db7138dcee4829615b8c842f8da Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 20 Feb 2023 10:29:48 -0700 Subject: [PATCH] [qu2cu] Fix optimization 4 wouldn't have caused problem really but 3 is correct. --- 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 b59daae4b..6136c2096 100644 --- a/Lib/fontTools/qu2cu/qu2cu.py +++ b/Lib/fontTools/qu2cu/qu2cu.py @@ -298,7 +298,7 @@ def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False): if i_sol < best_sol: best_sol = i_sol - if i_sol_count == 4: + if i_sol_count == 3: # Can't get any better than this break