summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-11-30 15:49:51 +0100
committerGitHub <noreply@github.com>2022-11-30 15:49:51 +0100
commit5af256e633c8ec5461ae5587f059b1124cbb5530 (patch)
treeb3d224830eed8c1a6ea62f93beebec485cc75dbd
parent1676333111706170f799f5c39a08483755e59d4d (diff)
Fill fonts with satin auto-routing (#1915)
* prevent error message on fill fonts with satin auto-routing
-rw-r--r--lib/lettering/font.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py
index 5a617da1..6960105f 100644
--- a/lib/lettering/font.py
+++ b/lib/lettering/font.py
@@ -11,7 +11,7 @@ from random import randint
import inkex
from ..commands import add_commands, ensure_symbol
-from ..elements import FillStitch, Stroke, nodes_to_elements
+from ..elements import FillStitch, SatinColumn, Stroke, nodes_to_elements
from ..exceptions import InkstitchException
from ..extensions.lettering_custom_font_dir import get_custom_font_dir
from ..i18n import _, get_languages
@@ -417,6 +417,7 @@ class Font(object):
"""
elements = nodes_to_elements(group.iterdescendants(SVG_PATH_TAG))
+ elements = [element for element in elements if isinstance(element, SatinColumn) or isinstance(element, Stroke)]
if elements:
auto_satin(elements, preserve_order=True, trim=False)