lettering: preserve scale (#2230)

pull/2231/head
Kaalleen 2023-04-23 07:02:54 +02:00 zatwierdzone przez GitHub
rodzic df94082cef
commit 16f52ca5da
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -1094,11 +1094,11 @@ class SatinColumn(EmbroideryElement):
points, _ = self.get_split_points(last_point, left, last_point, left, max_stitch_length)
patch.add_stitches(points)
patch.add_stitch(a_short, ("edge"))
patch.add_stitches(split_points, ("split_stitch"))
patch.add_stitch(b_short, ("edge"))
patch.add_stitches(split_points[::-1], ("split_stitch"))
patch.add_stitch(a_short, ("edge"))
patch.add_stitch(a_short, ("edge", "left"))
patch.add_stitches(split_points, ("split_stitch",))
patch.add_stitch(b_short, ("edge",))
patch.add_stitches(split_points[::-1], ("split_stitch",))
patch.add_stitch(a_short, ("edge",))
last_point = a_short

Wyświetl plik

@ -135,9 +135,9 @@ class LetteringFrame(wx.Frame):
self.back_and_forth_checkbox.SetValue(bool(self.settings.back_and_forth))
self.trim_option_choice.SetSelection(self.settings.trim_option)
self.use_trim_symbols.SetValue(bool(self.settings.use_trim_symbols))
self.set_initial_font(self.settings.font)
self.text_editor.SetValue(self.settings.text)
self.scale_spinner.SetValue(self.settings.scale)
self.set_initial_font(self.settings.font)
def save_settings(self):
"""Save the settings into the SVG group element."""

Wyświetl plik

@ -98,7 +98,7 @@ class RelativeLock(LockStitchDefinition):
direction = to_previous.unit()
for delta in path:
lock_stitches.append(Stitch(stitches[0] + delta * length * direction, tags=('lock_stitch')))
lock_stitches.append(Stitch(stitches[0] + delta * length * direction, tags=('lock_stitch',)))
else:
# Too short to travel part of the way to the previous stitch; just go
# back and forth to it a couple times.