feat(字体渲染): 支持渐变字体渲染

This commit is contained in:
2026-06-25 14:38:55 +08:00
parent 1ac0fe6ca4
commit f00f320429
5 changed files with 108 additions and 11 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ func fixTrueType(data []byte, fixCmap, fixName bool) (bool, []byte, map[rune]uin
if len(mapping) == 0 {
mapping = make(map[rune]uint16)
for i := uint16(0); i < numGlyphs; i++ {
mapping[rune(i)] = i
mapping[packedGlyphRune(i)] = i
}
}
newTables["cmap"] = buildCmapTable(numGlyphs, mapping)