pull/1578/head
kunfei 3 years ago
parent 53b18e18e3
commit 53131854ff
  1. 4
      app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.java

@ -235,7 +235,7 @@ public class QueryTTF {
public final Map<Integer, String> codeToGlyph = new HashMap<>(); public final Map<Integer, String> codeToGlyph = new HashMap<>();
public final Map<String, Integer> glyphToCode = new HashMap<>(); public final Map<String, Integer> glyphToCode = new HashMap<>();
private int limitMix = 0; private int limitMix = Integer.MAX_VALUE;
private int limitMax = 0; private int limitMax = 0;
/** /**
@ -478,10 +478,8 @@ public class QueryTTF {
for (short b : glyf.get(gid).xCoordinates) sb.append(b); for (short b : glyf.get(gid).xCoordinates) sb.append(b);
for (short b : glyf.get(gid).yCoordinates) sb.append(b); for (short b : glyf.get(gid).yCoordinates) sb.append(b);
String val = sb.toString(); String val = sb.toString();
if (limitMix == 0) limitMix = key;
if (limitMix > key) limitMix = key; if (limitMix > key) limitMix = key;
if (limitMax < key) limitMax = key; if (limitMax < key) limitMax = key;
limitMax = key;
codeToGlyph.put(key, val); codeToGlyph.put(key, val);
if (glyphToCode.containsKey(val)) continue; if (glyphToCode.containsKey(val)) continue;
glyphToCode.put(val, key); glyphToCode.put(val, key);

Loading…
Cancel
Save