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

+4 -5
View File
@@ -53,11 +53,10 @@ func (r *Reader) compressionFontUsage(ctx context.Context, documents map[string]
if err != nil {
return nil, err
}
fonts := root.child("Fonts")
if fonts == nil {
continue
}
for _, font := range fonts.children {
for font := range editorResourceNodes(root, "Fonts", "Font") {
if err := ctx.Err(); err != nil {
return nil, err
}
file := font.child("FontFile")
if file == nil {
continue