fix(问题修复): 修复资源解析与字体压缩
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-12 14:56:49 +08:00
1 parent 8979550127
commit 05579265b8
5 files changed
+178 -17

No files matched your search

+3 -5
View File
@@ -360,11 +360,9 @@ func fontBindingNode(data []byte, id string) (*editorXML, error) {
if err != nil {
return nil, err
}
if fonts := root.child("Fonts"); fonts != nil {
for _, node := range fonts.children {
if node.matchesOFD("Font") && editorResourceID(node.attr("ID")) == editorResourceID(id) {
return node, nil
}
for node := range editorResourceNodes(root, "Fonts", "Font") {
if editorResourceID(node.attr("ID")) == editorResourceID(id) {
return node, nil
}
}
return nil, fmt.Errorf("font declaration is missing")