feat(创建编辑): 新增对象旋转、翻转与图片裁剪,修复框选颜色及变换边界问题
build.yaml / build (push) Successful in 35s

This commit is contained in:
xiaoqidun committed 2026-09-16 00:19:49 +08:00
1 parent 105590d6d7
commit 827f8ab48f
15 files changed
+768 -64

No files matched your search

+3 -1
View File
@@ -192,7 +192,9 @@ func fixTrueType(data []byte, fixCmap, fixName bool) (bool, []byte, map[rune]uin
return true, finalData, mapping, missingCmap, nil
}
// hasBadPostTable 检查post表是否会被canvas/font拒绝
// hasBadPostTable 检查post表的版本、长度及字形数量是否存在已知不兼容
// 入参: data post表数据, numGlyphs 字形总数, isTrueType 是否使用TrueType轮廓
// 返回: bool 是否需要替换post表
func hasBadPostTable(data []byte, numGlyphs uint16, isTrueType bool) bool {
if len(data) < 32 {
return true