mirror of
https://github.com/gedoor/legado.git
synced 2024-06-30 23:06:46 +08:00
修复format4字形索引gIndex参数计算错误的BUG
This commit is contained in:
parent
dc9ce168c1
commit
da7093214f
|
@ -714,7 +714,7 @@ public class QueryTTF {
|
|||
if (idRangeOffset == 0) {
|
||||
unicodeToGlyphId.put(unicode, (unicode + idDelta) & 0xFFFF);
|
||||
} else {
|
||||
int gIndex = (idRangeOffset / 2) + unicode - unicodeInclusive + segmentIndex;
|
||||
int gIndex = (idRangeOffset / 2) + unicode - unicodeInclusive + segmentIndex - segCount;
|
||||
unicodeToGlyphId.put(unicode, gIndex < glyphIdArrayLength ? f.glyphIdArray[gIndex] + idDelta : 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user