From 5af256e633c8ec5461ae5587f059b1124cbb5530 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:49:51 +0100 Subject: Fill fonts with satin auto-routing (#1915) * prevent error message on fill fonts with satin auto-routing --- lib/lettering/font.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3