summaryrefslogtreecommitdiff
path: root/lib/lettering/font_variant.py
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2022-11-23 21:59:37 -0500
committerGeorge Steel <george.steel@gmail.com>2022-11-23 21:59:37 -0500
commit74f0943cc8e73a68b84d69acc1482bf1657e3ad6 (patch)
treebca22600fc3d0730a75171945ee9fd4d9f755ce9 /lib/lettering/font_variant.py
parent7cef2c9a094abe61282ac9bdc6bbfdc1e3e1d8c6 (diff)
parentdf4c5cd59b0e391048c8fd2271893dbd49ec7cd3 (diff)
Merge branch 'main' of https://github.com/inkstitch/inkstitch into george-steel/pull-comp-percent
Diffstat (limited to 'lib/lettering/font_variant.py')
-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 a7f353fe..ecdba137 100644
--- a/lib/lettering/font_variant.py
+++ b/lib/lettering/font_variant.py
@@ -69,7 +69,10 @@ class FontVariant(object):
self._clean_group(layer)
layer.attrib[INKSCAPE_LABEL] = layer.attrib[INKSCAPE_LABEL].replace("GlyphLayer-", "", 1)
glyph_name = layer.attrib[INKSCAPE_LABEL]
- self.glyphs[glyph_name] = Glyph(layer)
+ try:
+ self.glyphs[glyph_name] = Glyph(layer)
+ except AttributeError:
+ pass
def _clean_group(self, group):
# We'll repurpose the layer as a container group labelled with the