in src/java/org/apache/fop/render/pdf/pdfbox/FOPPDFMultiByteFont.java [210:231]
private Map<Integer, String> getMapping(FontContainer font, CMap c, int len) throws IOException {
Map<Integer, String> mapping = new HashMap<Integer, String>();
if (font.font instanceof PDType0Font) {
PDCIDFont cidFont = ((PDType0Font) font.font).getDescendantFont();
if (cidFont instanceof PDCIDFontType0) {
mapping = getStrings(((PDCIDFontType0) cidFont).getCFFFont());
}
}
if (c != null) {
int last = font.getLastChar();
if (last == -1) {
last = len;
}
for (int i = font.getFirstChar(); i <= last; i++) {
String l = c.toUnicode(i);
if (l != null) {
mapping.put(i, l);
}
}
}
return mapping;
}