feat(编辑能力): 完善缺字诊断,优化字体选择体验
build.yaml / build (push) Successful in 40s

This commit is contained in:
xiaoqidun committed 2026-09-16 20:36:11 +08:00
1 parent bf27afea13
commit f924f008a3
9 files changed
+105 -29

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { CanvasEditor, canEditObject, objectEditReason } from "./ofdgo_edit.js";
import { CanvasEditor, canEditObject, missingGlyphMessage, objectEditReason } from "./ofdgo_edit.js";
import { FontManager, FontPicker } from "./ofdgo_font.js";
const MM_TO_PX = 96 / 25.4;
@@ -1727,7 +1727,7 @@ async function loadWASM() {
if (data.ok) {
request.resolve(data.data);
} else {
const err = new Error(data.error);
const err = new Error(missingGlyphMessage(data.missingGlyphs) || data.error);
if (data.canceled) {
err.name = "AbortError";
}