summaryrefslogtreecommitdiff
path: root/lib/lettering/font.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-07-25 07:24:34 +0200
committerGitHub <noreply@github.com>2021-07-25 07:24:34 +0200
commit2f35a4a192eb6aa3b68b715da6c1ba984084e0e5 (patch)
tree7a28d41ff83730e3bf53ee65b315783497503cec /lib/lettering/font.py
parent36815f977d7236311e9b345c33fbc74390766385 (diff)
Fix Style Issues (#1154)
Co-authored-by: Lex Neva <github.com@lexneva.name>
Diffstat (limited to 'lib/lettering/font.py')
-rw-r--r--lib/lettering/font.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py
index d241bf05..cbd8f257 100644
--- a/lib/lettering/font.py
+++ b/lib/lettering/font.py
@@ -7,16 +7,15 @@ import json
import os
from copy import deepcopy
-from inkex import styles
-from lxml import etree
+import inkex
+from .font_variant import FontVariant
from ..elements import nodes_to_elements
from ..exceptions import InkstitchException
from ..i18n import _, get_languages
from ..stitches.auto_satin import auto_satin
-from ..svg.tags import INKSCAPE_LABEL, SVG_GROUP_TAG, SVG_PATH_TAG
+from ..svg.tags import INKSCAPE_LABEL, SVG_PATH_TAG
from ..utils import Point
-from .font_variant import FontVariant
class FontError(InkstitchException):
@@ -190,7 +189,7 @@ class Font(object):
for element in destination_group.iterdescendants(SVG_PATH_TAG):
dash_array = ""
stroke_width = ""
- style = styles.Style(element.get('style'))
+ style = inkex.styles.Style(element.get('style'))
if style.get('fill') == 'none':
stroke_width = ";stroke-width:1px"
@@ -224,7 +223,7 @@ class Font(object):
An svg:g element containing the rendered text.
"""
- group = etree.Element(SVG_GROUP_TAG, {
+ group = inkex.Group(attrib={
INKSCAPE_LABEL: line
})