MooTool

Handy tool set for developers

View on GitHub

DIFF-482:设置加载规范化编辑器字体名(对齐 Electron mergeSettings

背景

Electron normalizeSettingsnormalizeFontName 修剪 editor.jsonFontName / editor.quickNoteFontName 首尾空白,空字符串回退默认 ui-monospacenext/src/shared/contracts/settings.test.ts normalizes editor font family names)。Compose 设置页与 JSON 工具栏虽写入用户选择,但 settings.json 与 Electron 迁入曾保留带空格或空随手记字体,导致 RSTA/DocumentFormatEngine 解析与 Electron 不一致。

行为

验证