feat(渲染转换): 完善PDF转换及点线绘制
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-09-27 15:26:10 +08:00
1 parent e78ea6f919
commit 3b9f88cbba
16 files changed
+383 -43

No files matched your search

+9
View File
@@ -15,6 +15,7 @@
package ofdgo
import (
"bytes"
"encoding/binary"
)
@@ -53,6 +54,14 @@ func fixTrueType(data []byte, fixCmap, fixName bool) (bool, []byte, map[rune]uin
if existingTables["CFF "] != nil {
isCFFSfnt = true
}
cmap, err := normalizeCmap(existingTables["cmap"])
if err != nil {
return false, data, nil, false, err
}
if !bytes.Equal(cmap, existingTables["cmap"]) {
existingTables["cmap"] = cmap
malformedDirectory = true
}
missingHead := existingTables["head"] == nil
if !missingHead {
head := existingTables["head"]