feat(编辑能力): 修复字体外置残留与版本清理
build.yaml / build (push) Successful in 49s

This commit is contained in:
xiaoqidun committed 2026-10-11 11:07:33 +08:00
1 parent f71000befd
commit 6a9d2a12eb
3 files changed
+157 -10

No files matched your search

+3
View File
@@ -620,6 +620,9 @@ func (e *Editor) writeSource(writer io.Writer, fonts map[string][]byte, progress
return 0, err
}
}
if err := e.compactVersionFonts(ctx, parts, removed); err != nil {
return 0, err
}
if len(parts) != 0 || len(removed) != 0 || e.output != nil && e.output.options.Mode != CompressionUnchanged && !e.output.protected {
name := "OFD.xml"
if file, ok := reader.packageFile(name); ok {