summaryrefslogtreecommitdiff
path: root/lib/svg/path.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2019-04-30 19:57:31 -0400
committerLex Neva <github.com@lexneva.name>2019-04-30 19:57:31 -0400
commit43a385ea0aaa591b62fdfda629d4299e4cadc15c (patch)
tree448a4c323fa6af4658de50eb34f4b7ddb3281062 /lib/svg/path.py
parentb307b8e8247678a4bf128ded80a9bfd7b9b54c81 (diff)
parent5b6923fe9d8d5f3afb0ef298ad34708e735fc5e5 (diff)
Merge branch 'master' into lexelby/lettering-features
Diffstat (limited to 'lib/svg/path.py')
-rw-r--r--lib/svg/path.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/svg/path.py b/lib/svg/path.py
index d2b4aee1..f0f6708b 100644
--- a/lib/svg/path.py
+++ b/lib/svg/path.py
@@ -1,3 +1,4 @@
+import cubicsuperpath
import inkex
import simpletransform
@@ -80,3 +81,11 @@ def point_lists_to_csp(point_lists):
csp.append(subpath)
return csp
+
+
+def line_strings_to_path(line_strings):
+ csp = line_strings_to_csp(line_strings)
+
+ return inkex.etree.Element("path", {
+ "d": cubicsuperpath.formatPath(csp)
+ })