feat(文件拆分): 拆分字体图像基础能力
build.yaml / build (push) Successful in 49s

This commit is contained in:
xiaoqidun committed 2026-10-14 00:12:00 +08:00
1 parent ee3fd02a0a
commit 64f9ec4241
87 files changed
+2693 -2289

No files matched your search

+3 -1
View File
@@ -18,6 +18,8 @@ import (
"container/list"
"image"
"reflect"
baseimage "github.com/xiaoqidun/ofdgo/internal/base/image"
)
// renderCache 按估算字节数限制派生渲染数据,淘汰不修改源资源
@@ -113,7 +115,7 @@ func rasterCommandsCost(commands []RasterCommand, limit int) int {
}
images[command.Image] = true
}
part = imageResourceCost(command.Image, limit-cost)
part = baseimage.StorageCost(command.Image, limit-cost)
if part > limit-cost {
return limit + 1
}