From bf1ed91bdeae677aa3cb2bb5b6b8781f8aa81659 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 20 Feb 2023 13:08:14 -0700 Subject: [PATCH] [qu2cu] Adjust optimization --- 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 aeab80308..e8c1906bc 100644 --- a/Lib/fontTools/qu2cu/qu2cu.py +++ b/Lib/fontTools/qu2cu/qu2cu.py @@ -268,7 +268,7 @@ def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False): if i_sol < best_sol: best_sol = i_sol - if this_count == 3: + if this_count <= 3: # Can't get any better than this break