if (font instanceof PDType0Font) int cid = ((PDType0Font) font).codeToCID(code); String cidHex = String.format("%04x", cid); LOG.warn("No glyph for code " + code + " (CID " + cidHex + ") in font " + fontName);
@Override public GeneralPath getPathForCharacterCode(int code) { GeneralPath path = cache.get(code); if (path == null) { try { if (!font.hasGlyph(code)) { int cid = font.getParent().codeToCID(code); String cidHex = String.format("%04x", cid); LOG.warn("No glyph for " + code + " (CID " + cidHex + ") in font " + fontName); } path = font.getPath(code); cache.put(code, path); return path; } catch (IOException e) { // todo: escalate this error? LOG.error("Glyph rendering failed", e); path = new GeneralPath(); } } return path; }
if (font instanceof PDType0Font) int cid = ((PDType0Font) font).codeToCID(code); String cidHex = String.format("%04x", cid); LOG.warn("No glyph for " + code + " (CID " + cidHex + ") in font " + fontName);
int cid = ((PDType0Font) font).codeToCID(code); String cidHex = String.format("%04x", cid); LOG.warn("No glyph for code " + code + " (CID " + cidHex + ") in font " +
int CID = ((PDType0Font) font).codeToCID(code); glyph = new PBCIDGlyph(glyphPresent, widthsConsistent, font, code, CID, this.state.getRenderingMode().intValue());