diff --git a/frontend/src/scripts/elements/commandline-lists.ts b/frontend/src/scripts/elements/commandline-lists.ts index 22d23ea74..f4f7d201d 100644 --- a/frontend/src/scripts/elements/commandline-lists.ts +++ b/frontend/src/scripts/elements/commandline-lists.ts @@ -181,10 +181,11 @@ const commandsFonts: MonkeyTypes.CommandsGroup = { Misc.getFontsList().then((fonts) => { fonts.forEach((font) => { + const configVal = font.name.replace(/ /g, "_"); commandsFonts.list.push({ id: "changeFont" + font.name.replace(/ /g, "_"), display: font.display !== undefined ? font.display : font.name, - configValue: font.name, + configValue: configVal, hover: (): void => { UpdateConfig.previewFontFamily(font.name); },