Skip to content

Commit

Permalink
We don't need the existing source name mapping when writing: we can (…
Browse files Browse the repository at this point in the history
…and do) reconstruct from scratch
  • Loading branch information
justvanrossum committed Aug 30, 2023
1 parent ecd73e8 commit 5094cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fontra/backends/designspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ async def putGlyph(self, glyphName, glyph, unicodes):
defaultLayerGlyph = readGlyphOrCreate(
self.defaultUFOLayer.glyphSet, glyphName, unicodes
)
sourceNameMapping = defaultLayerGlyph.lib.get(SOURCE_NAME_MAPPING_LIB_KEY, {})
layerNameMapping = defaultLayerGlyph.lib.get(LAYER_NAME_MAPPING_LIB_KEY, {})

revLayerNameMapping = reverseSparseDict(layerNameMapping)

sourceNameMapping = {}
layerNameMapping = {}
localAxes = packLocalAxes(glyph.axes)
localAxisNames = {axis.name for axis in glyph.axes}
Expand Down

0 comments on commit 5094cb3

Please sign in to comment.