From d8e0d571c035ca05099c1964268aec7818405961 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 7 Aug 2024 13:10:11 +0200 Subject: [PATCH] tweak curve compensation it jitters, if the compensation is done in too rough steps --- butils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/butils.py b/butils.py index 1982546..6e2142d 100644 --- a/butils.py +++ b/butils.py @@ -621,7 +621,7 @@ def set_text_on_curve(text_properties): 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.1 + curve_compensation = curve_compensation + glyph_advance * 0.01 new_location = calc_point_on_bezier_curve(mom, advance + glyph_advance + curve_compensation, False) ob.scale = (scalor, scalor, scalor)