reshuffle

easier commenting out block of code
This commit is contained in:
themancalledjakob 2024-08-07 13:10:42 +02:00
parent d8e0d571c0
commit d8f8441871

View file

@ -617,9 +617,9 @@ def set_text_on_curve(text_properties):
# now we need to compensate for curvature # now we need to compensate for curvature
# otherwise letters will be closer together the curvier the bezier is # otherwise letters will be closer together the curvier the bezier is
# this could be done more efficiently, but whatever # this could be done more efficiently, but whatever
curve_compensation = 0
previous_location = calc_point_on_bezier_curve(mom, advance, False) previous_location = calc_point_on_bezier_curve(mom, advance, False)
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
while (previous_location - new_location).length < glyph_advance: while (previous_location - new_location).length < glyph_advance:
curve_compensation = curve_compensation + glyph_advance * 0.01 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)