in src/java/org/apache/fop/render/pdf/pdfbox/MergeCFFFonts.java [192:215]
public static Map<String, byte[]> getStrings(CFFFont ff) throws IOException {
CFFCharset cs = ff.getCharset();
List<byte[]> csbytes = ff.getCharStringBytes();
Map<String, byte[]> strings = new LinkedHashMap<String, byte[]>();
int i = 0;
try {
for (int gid = 0; gid < 256; gid++) {
String name = cs.getNameForGID(gid);
if (name != null && i < csbytes.size()) {
strings.put(name, csbytes.get(i));
i++;
}
}
} catch (IllegalStateException e) {
strings.put(".notdef", csbytes.get(0));
for (int sid : getSids(ff.getCharset())) {
if (i < csbytes.size()) {
i++;
strings.put(readString(sid), csbytes.get(i));
}
}
}
return strings;
}