feat(字体处理): 修复字体变换,完善子集导入
build.yaml / build (push) Successful in 5m46s

This commit is contained in:
xiaoqidun committed 2026-10-04 18:20:34 +08:00
1 parent 60eb5ac6a1
commit be697e7045
10 files changed
+508 -220

No files matched your search

+5 -1
View File
@@ -57,7 +57,11 @@ func fixTrueType(data []byte, fixCmap, fixName bool) (bool, []byte, map[rune]uin
if err != nil {
return false, data, nil, false, err
}
normalized, err := normalizeCFFCharstrings(sanitized)
var units uint16
if head := existingTables["head"]; len(head) >= 20 {
units = binary.BigEndian.Uint16(head[18:20])
}
normalized, err := normalizeCFFCharstringsAt(sanitized, units)
if err != nil {
return false, data, nil, false, err
}