public String getOrdering() { if (isDirect()) { return "Identity"; } else { return cid2Code.getOrdering(); } }
public int getSupplement() { if (isDirect()) { return 0; } else { return cid2Code.getSupplement(); } }
public String getRegistry() { if (isDirect()) { return "Adobe"; } else { return cid2Code.getRegistry(); } }
public String getOrdering() { if (isDirect()) { return "Identity"; } else { return cid2Code.getOrdering(); } }
public String getRegistry() { if (isDirect()) { return "Adobe"; } else { return cid2Code.getRegistry(); } }
public int getSupplement() { if (isDirect()) { return 0; } else { return cid2Code.getSupplement(); } }
if (cidFontType == CID_FONT_TYPE_0) { int len = content.length(); if (cmapEncoding.isDirect()) { for (int k = 0; k < len; ++k) { Glyph glyph = fontProgram.getGlyphByCode((int) content.charAt(k));
@Override public int appendGlyphs(String text, int from, int to, List<Glyph> glyphs) { if (cidFontType == CID_FONT_TYPE_0) { if (cmapEncoding.isDirect()) { int processed = 0; for (int k = from; k <= to; k++) {
if (cmapEncoding.isDirect()) { Glyph glyph = fontProgram.getGlyphByCode((int) text.charAt(from)); if (glyph != null) {
@Override public boolean containsGlyph(int unicode) { if (cidFontType == CID_FONT_TYPE_0) { if (cmapEncoding.isDirect()) { return fontProgram.getGlyphByCode(unicode) != null; } else { return getFontProgram().getGlyph(unicode) != null; } } else if (cidFontType == CID_FONT_TYPE_2) { if (fontProgram.isFontSpecific()) { byte[] b = PdfEncodings.convertToBytes((char) unicode, "symboltt"); return b.length > 0 && fontProgram.getGlyph(b[0] & 0xff) != null; } else { return getFontProgram().getGlyph(unicode) != null; } } else { throw new PdfException("Invalid CID font type: " + cidFontType); } }