From d8f844187185d8ba77b4ea7337699f13de7cc72b Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 7 Aug 2024 13:10:42 +0200 Subject: [PATCH] reshuffle easier commenting out block of code --- butils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/butils.py b/butils.py index 6e2142d..25b0c8e 100644 --- a/butils.py +++ b/butils.py @@ -617,9 +617,9 @@ def set_text_on_curve(text_properties): # now we need to compensate for curvature # otherwise letters will be closer together the curvier the bezier is # this could be done more efficiently, but whatever + curve_compensation = 0 previous_location = calc_point_on_bezier_curve(mom, advance, False) new_location = calc_point_on_bezier_curve(mom, advance + glyph_advance, False) - curve_compensation = 0 while (previous_location - new_location).length < glyph_advance: curve_compensation = curve_compensation + glyph_advance * 0.01 new_location = calc_point_on_bezier_curve(mom, advance + glyph_advance + curve_compensation, False)