mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
feat(字体渲染): 支持渐变字体渲染
This commit is contained in:
1 parent
1ac0fe6ca4
commit
f00f320429
5 files changed
+108
-11
No files matched your search
+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