diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-03-31 17:10:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-31 17:10:40 +0200 |
| commit | 06b6f976a9975c9860fcc0a29e6e9c3ea174ba9d (patch) | |
| tree | 1a423bce337baa011b1412843307ebed88d303eb /lib/extensions/letters_to_font.py | |
| parent | 98f4bc43de2869b26a52dbfd02968dd69425d8b8 (diff) | |
Command options (#2160)
* letters to font: add visual command import option
* add visual command option to stitch plan preview
Diffstat (limited to 'lib/extensions/letters_to_font.py')
| -rw-r--r-- | lib/extensions/letters_to_font.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/extensions/letters_to_font.py b/lib/extensions/letters_to_font.py index 158d0d9f..56a33ad8 100644 --- a/lib/extensions/letters_to_font.py +++ b/lib/extensions/letters_to_font.py @@ -25,7 +25,7 @@ class LettersToFont(InkstitchExtension): InkstitchExtension.__init__(self, *args, **kwargs) self.arg_parser.add_argument("-d", "--font-dir", type=str, default="", dest="font_dir") self.arg_parser.add_argument("-f", "--file-format", type=str, default="", dest="file_format") - self.arg_parser.add_argument("-c", "--import-commands", type=inkex.Boolean, default=False, dest="import_commands") + self.arg_parser.add_argument("-c", "--import-commands", type=str, default="params", dest="import_commands") def effect(self): font_dir = self.options.font_dir @@ -50,7 +50,7 @@ class LettersToFont(InkstitchExtension): # remove color block groups if we import without commands # there will only be one object per color block anyway - if not self.options.import_commands: + if self.options.import_commands == "none": for element in letter.iter(SVG_PATH_TAG): group.insert(0, element) else: @@ -78,4 +78,4 @@ class LettersToFont(InkstitchExtension): return stitch_plan def insert_baseline(self, document): - document.namedview.new_guide(position=0.0, name="baseline") + document.namedview.add_guide(position=0.0, name="baseline") |
