This commit is contained in:
kunfei 2022-01-27 19:51:21 +08:00
parent 9c6949186c
commit 02cdba6196

View File

@ -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);