From a26fa2dea756bba335021079a619f7a669c2e09c Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sat, 16 Sep 2023 19:27:41 +0200 Subject: [PATCH] Compare against the correct default glyph (sripped of location details) --- src/fontra/client/core/glyph-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontra/client/core/glyph-controller.js b/src/fontra/client/core/glyph-controller.js index f8c8a29c01..615e148864 100644 --- a/src/fontra/client/core/glyph-controller.js +++ b/src/fontra/client/core/glyph-controller.js @@ -219,7 +219,7 @@ export class VariableGlyphController { } const defaultSourceIndex = this.model?.reverseMapping[0] || 0; const defaultSourceGlyph = - this.layers[this.sources[defaultSourceIndex].layerName].glyph; + layerGlyphs[this.sources[defaultSourceIndex].layerName]; this._sourceInterpolationStatus = this.sources.map((source) => { const sourceGlyph = layerGlyphs[source.layerName]; if (sourceGlyph !== defaultSourceGlyph) {