From d6e622af2f1d29e5851f71d1e8f0062a67c308ab Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Tue, 5 Sep 2023 11:15:26 +0200 Subject: [PATCH] Add comment --- src/fontra/backends/designspace.py | 1 + 1 file changed, 1 insertion(+) 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