mirror of
https://github.com/gedoor/legado.git
synced 2024-07-02 23:17:32 +08:00
解析字体时排除轮廓索引为0的Unicode编码
This commit is contained in:
parent
c907ed51b7
commit
d7ae1d4f0a
|
@ -975,6 +975,7 @@ public class QueryTTF {
|
|||
int key = item.getKey();
|
||||
int val = item.getValue();
|
||||
if (val >= glyfArrayLength) continue;
|
||||
if (val == 0) continue; // 排除轮廓索引为0的Unicode
|
||||
String glyfString = getGlyfById(val);
|
||||
unicodeToGlyph.put(key, glyfString);
|
||||
if (glyfString == null) continue; // null 不能用作hashmap的key
|
||||
|
|
Loading…
Reference in New Issue
Block a user