summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-04-22 17:45:42 +0200
committerGitHub <noreply@github.com>2023-04-22 17:45:42 +0200
commitdf94082cefa05c98ae6da43ecf4a25437ae16b30 (patch)
tree1b74c378942474ff1295d56228953422f21092eb
parente371015c034412feb327d172934e6290fc1f6ccf (diff)
update legacy fonts (#2227)
-rw-r--r--lib/lettering/font_variant.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lettering/font_variant.py b/lib/lettering/font_variant.py
index 75be95e7..2cf21c61 100644
--- a/lib/lettering/font_variant.py
+++ b/lib/lettering/font_variant.py
@@ -9,6 +9,7 @@ import inkex
from ..svg.tags import (INKSCAPE_GROUPMODE, INKSCAPE_LABEL, SVG_GROUP_TAG,
SVG_PATH_TAG, SVG_USE_TAG)
+from ..update import update_inkstitch_document
from .glyph import Glyph
@@ -62,7 +63,9 @@ class FontVariant(object):
def _load_glyphs(self):
variant_file_paths = self._get_variant_file_paths()
for svg_path in variant_file_paths:
- svg = inkex.load_svg(svg_path).getroot()
+ document = inkex.load_svg(svg_path)
+ update_inkstitch_document(document)
+ svg = document.getroot()
svg = self._apply_transforms(svg)
glyph_layers = svg.xpath(".//svg:g[starts-with(@inkscape:label, 'GlyphLayer-')]", namespaces=inkex.NSS)