feat(字体能力): 优化字体信息读取性能
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-14 00:57:03 +08:00
1 parent 5cc811c2a1
commit 20e1bf95cd
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ func FaceInfo(data []byte, index int) Face {
}
return ""
}
return Face{Index: index, FullName: name(4, 6, 16, 1), Family: name(16, 1), Style: name(17, 2), PostScriptName: name(6), Names: NamesFromTable(data)}
return Face{Index: index, FullName: name(4, 6, 16, 1), Family: name(16, 1), Style: name(17, 2), PostScriptName: name(6), Names: fontNamesFromValues(records, values)}
}
// FileCount 校验字体或集合头并读取字体数量