diff --git a/src/fontra/views/editor/visualization-layer-definitions.js b/src/fontra/views/editor/visualization-layer-definitions.js index 627e97060..ea8202ab5 100644 --- a/src/fontra/views/editor/visualization-layer-definitions.js +++ b/src/fontra/views/editor/visualization-layer-definitions.js @@ -1045,12 +1045,16 @@ registerVisualizationLayerDefinition({ return; } - const status = + let status = positionedGlyph.varGlyph.sources[sourceIndex].customData[ "fontra.development.status" ]; + if (status === undefined) { - return; + status = statusFieldDefinitions.find((statusDef) => statusDef.isDefault)?.value; + if (status === undefined) { + return; + } } const color = [...statusFieldDefinitions[status].color];