mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:59:27 +08:00
1 parent
63e56c5ab8
commit
051fc3b65e
8 files changed
+505
-5
No files matched your search
+1
-1
@@ -292,7 +292,7 @@ func serializeOTF(tables map[string][]byte) ([]byte, error) {
|
||||
searchRange := 1 << (entrySelector + 4)
|
||||
rangeShift := int(numTables)*16 - searchRange
|
||||
buf := new(bytes.Buffer)
|
||||
if _, ok := tables["CFF "]; ok {
|
||||
if tables["CFF "] != nil || tables["CFF2"] != nil {
|
||||
buf.WriteString("OTTO")
|
||||
} else {
|
||||
binary.Write(buf, binary.BigEndian, uint32(0x00010000))
|
||||
|
||||
Reference in new issue
Block a user