diff --git a/src/fontra/backends/designspace.py b/src/fontra/backends/designspace.py index d154d78b8..0a9d570d2 100644 --- a/src/fontra/backends/designspace.py +++ b/src/fontra/backends/designspace.py @@ -518,6 +518,7 @@ def _newUFOLayer(self, glyphName, ufoPath, suggestedLayerName): existingLayerNames = set(reader.getLayerNames()) ufoLayerName = suggestedLayerName count = 0 + # getGlyphSet() will create the layer if it doesn't already exist while glyphName in self.ufoManager.getGlyphSet(ufoPath, ufoLayerName): # The glyph already exists in the layer, which means there is # a conflict. Let's make up a layer name in which the glyph