From 8f8e57fd6e11b711791d34eddfcfd0eae272c6b6 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Fri, 13 Dec 2024 14:47:37 +0100 Subject: [PATCH] Remove the range for the parent glyph; remove redundant return --- src/fontra/workflow/actions/glyph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fontra/workflow/actions/glyph.py b/src/fontra/workflow/actions/glyph.py index 4d527e83c..832468f1f 100644 --- a/src/fontra/workflow/actions/glyph.py +++ b/src/fontra/workflow/actions/glyph.py @@ -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):