From df94082cefa05c98ae6da43ecf4a25437ae16b30 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 22 Apr 2023 17:45:42 +0200 Subject: [PATCH] update legacy fonts (#2227) --- lib/lettering/font_variant.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/lettering/font_variant.py b/lib/lettering/font_variant.py index 75be95e72..2cf21c613 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)