mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
9c6949186c
commit
02cdba6196
@ -472,7 +472,7 @@ public class QueryTTF {
|
||||
for (int key = 0; key < 130000; ++key) {
|
||||
if (key == 0xFF) key = 0x3400;
|
||||
int gid = getGlyfIndex(key);
|
||||
if (gid == 0) continue;
|
||||
if (gid == 0 || gid >= glyf.size()) continue;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
// 字型数据转String,方便存HashMap
|
||||
for (short b : glyf.get(gid).xCoordinates) sb.append(b);
|
||||
|
Loading…
Reference in New Issue
Block a user