mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-08-30 12:12:40 +08:00
feat(字体渲染): 支持渐变字体渲染
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user