Skip to content

Commit

Permalink
Remove the range for the parent glyph; remove redundant return
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Dec 13, 2024
1 parent 6d01629 commit 8f8e57f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fontra/workflow/actions/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,10 @@ async def getGlyph(self, glyphName: str) -> VariableGlyph | None:
async def getComponentAxisRanges(instancer, fontInstancer):
with fontInstancer.collectVariableGlyphAxisRanges() as axisRanges:
_ = await decomposeComposites(fontInstancer, instancer)
# axisRanges will also contain the full ranges for *this*
# glyph, which defeats the purpose, so we drop that.
del axisRanges[instancer.glyph.name]
return axisRanges
return axisRanges


def mergeAxisRanges(glyphAxisRanges):
Expand Down

0 comments on commit 8f8e57f

Please sign in to comment.