diff --git a/src/fontra/views/editor/editor.js b/src/fontra/views/editor/editor.js index d3043ec55..29e974a40 100644 --- a/src/fontra/views/editor/editor.js +++ b/src/fontra/views/editor/editor.js @@ -470,8 +470,8 @@ export class EditorController { if (!glyphName) { return; } - const codePoint = this.fontController.codePointForGlyph(); - const glyphInfo = { glyphName }; + const codePoint = this.fontController.codePointForGlyph(glyphName); + const glyphInfo = { glyphName: glyphName }; if (codePoint !== undefined) { glyphInfo["character"] = getCharFromUnicode(codePoint); }