private String readString(int index) throws IOException { if (index >= 0 && index <= 390) { return CFFStandardString.getName(index); } if (index - 391 < stringIndex.length) { return stringIndex[index - 391]; } else { // technically this maps to .notdef, but we need a unique sid name return "SID" + index; } }
/** * For use by subclasses only. */ protected void add(int code, int sid) { String name = CFFStandardString.getName(sid); codeToName.put(code, name); addCharacterEncoding(code, name); } }
private String readString(int index) throws IOException { if (index >= 0 && index <= 390) { return CFFStandardString.getName(index); } if (index - 391 < stringIndex.length) { return stringIndex[index - 391]; } else { // technically this maps to .notdef, but we need a unique sid name return "SID" + index; } }
private String readString(int index) throws IOException { if (index >= 0 && index <= 390) { return CFFStandardString.getName(index); } if (index - 391 < stringIndex.length) { return stringIndex[index - 391]; } else { // technically this maps to .notdef, but we need a unique sid name return "SID" + index; } }
/** * For use by subclasses only. */ protected void add(int code, int sid) { String name = CFFStandardString.getName(sid); codeToName.put(code, name); addCharacterEncoding(code, name); } }
/** * For use by subclasses only. */ protected void add(int code, int sid) { String name = CFFStandardString.getName(sid); codeToName.put(code, name); addCharacterEncoding(code, name); } }
gidToSID.put(v, sid); if (mbFont != null) { mbFont.mapUsedGlyphName(v, CFFStandardString.getName(sid));
CFFStandardString.getName(sid)); } else { int index = sid - 391;