perf(性能优化): 优化资源读写与字体图像处理
build.yaml / build (push) Successful in 9m22s

This commit is contained in:
xiaoqidun committed 2026-10-14 08:22:31 +08:00
1 parent 21bd592358
commit bec13d523f
47 files changed
+1455 -539

No files matched your search

+2 -2
View File
@@ -72,10 +72,10 @@ type fontUsageReferences struct {
patterns map[*Pattern]bool
}
// Fonts 获取OFD声明的字体列表
// Fonts 获取OFD声明的字体列表,不加载注解或签名
// 返回: []Font 字体列表, error 错误信息
func (r *Reader) Fonts() ([]Font, error) {
doc, err := r.Doc()
doc, err := r.docStructure()
if err != nil {
return nil, err
}