feat(强化兼容): 支持位图和优化字体渲染
build.yaml / build (push) Successful in 32s

This commit is contained in:
2026-07-04 00:35:59 +08:00
parent d42d4394d3
commit 388b01dade
6 changed files with 321 additions and 11 deletions
+1
View File
@@ -20,6 +20,7 @@ import (
// FixFontDataAggressive 激进修复字体数据
// 尝试修复缺失表(OS/2, cmap等)的TrueType字体或包装CFF裸数据
// 对显式字形映射补充私有字符cmap,便于按glyph id渲染
// 入参: data 原始字体数据, fixCmap 是否修复cmap, fixName 是否修复name
// 返回: bool 是否修复, []byte 修复后数据, map[rune]uint16 字符映射, bool 是否缺失cmap, error 错误信息
func FixFontDataAggressive(data []byte, fixCmap, fixName bool) (bool, []byte, map[rune]uint16, bool, error) {