/** * Returns the map of new -> old GIDs. */ public Map<Integer, Integer> getGIDMap() throws IOException { addCompoundReferences(); Map<Integer, Integer> newToOld = new HashMap<>(); int newGID = 0; for (int oldGID : glyphIds) { newToOld.put(newGID, oldGID); newGID++; } return newToOld; }
/** * Returns the map of new -> old GIDs. */ public Map<Integer, Integer> getGIDMap() throws IOException { addCompoundReferences(); Map<Integer, Integer> newToOld = new HashMap<Integer, Integer>(); int newGID = 0; for (int oldGID : glyphIds) { newToOld.put(newGID, oldGID); newGID++; } return newToOld; }
/** * Returns the map of new -> old GIDs. */ public Map<Integer, Integer> getGIDMap() throws IOException { addCompoundReferences(); Map<Integer, Integer> newToOld = new HashMap<>(); int newGID = 0; for (int oldGID : glyphIds) { newToOld.put(newGID, oldGID); newGID++; } return newToOld; }