Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Sep 4, 2023
1 parent 40c96c9 commit 68a3f8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fontra/backends/designspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ async def getGlyph(self, glyphName):
layerNameMapping = ufoGlyph.lib.get(LAYER_NAME_MAPPING_LIB_KEY, {})
layers[ufoLayer.fontraLayerName] = Layer(staticGlyph)

# When a glyph has axes with names that also exist as global axes, we need
# to make sure our source locations use the *local* default values. We do
# that with a location dict that only contains local values for such "shadow"
# axes.
localDefaultOverride = {
axis.name: axis.defaultValue
for axis in axes
Expand Down

0 comments on commit 68a3f8c

Please sign in to comment.