tweak curve compensation

it jitters, if the compensation is done in too rough steps
This commit is contained in:
themancalledjakob 2024-08-07 13:10:11 +02:00
parent 561f6605ee
commit d8e0d571c0

View file

@ -621,7 +621,7 @@ def set_text_on_curve(text_properties):
new_location = calc_point_on_bezier_curve(mom, advance + glyph_advance, False) new_location = calc_point_on_bezier_curve(mom, advance + glyph_advance, False)
curve_compensation = 0 curve_compensation = 0
while (previous_location - new_location).length < glyph_advance: 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) new_location = calc_point_on_bezier_curve(mom, advance + glyph_advance + curve_compensation, False)
ob.scale = (scalor, scalor, scalor) ob.scale = (scalor, scalor, scalor)