/** * Returns true if this font is one of the "Standard 14" fonts and receives special handling. */ public boolean isStandard14() { // this logic is based on Acrobat's behaviour, see PDFBOX-2372 // embedded fonts never get special treatment if (isEmbedded()) { return false; } // if the name matches, this is a Standard 14 font return Standard14Fonts.containsName(getName()); }
if (!font.isEmbedded() && !font.isVertical() && !font.isStandard14() && font.hasExplicitWidth(code))
if (!font.isEmbedded() && !font.isVertical() && !font.isStandard14() && font.hasExplicitWidth(code))
if (!font.isEmbedded())
PDResources resources = page.getResources(); Iterator<COSName> ite = resources.getFontNames(); while (ite.hasNext()) { COSName name = ite.next(); PDFont font = resources.getFont(name); boolean isEmbedded = font.isEmbedded(); // ... do something with the results ... }
/** * Returns true if this font is one of the "Standard 14" fonts and receives special handling. */ public boolean isStandard14() { // this logic is based on Acrobat's behaviour, see PDFBOX-2372 // embedded fonts never get special treatment if (isEmbedded()) { return false; } // if the name matches, this is a Standard 14 font return Standard14Fonts.containsName(getName()); }
/** * Returns true if this font is one of the "Standard 14" fonts and receives special handling. */ public boolean isStandard14() { // this logic is based on Acrobat's behaviour, see PDFBOX-2372 // embedded fonts never get special treatment if (isEmbedded()) { return false; } // if the name matches, this is a Standard 14 font return Standard14Fonts.containsName(getName()); }
Vector displacement, Shape path) { if (!font.isEmbedded()) { float fontWidth = (float) path.getBounds2D().getWidth(); if (fontWidth > 0 && Math.abs(fontWidth - displacement.getX() * 1000) > 0.0001) {
String fontName = font.getFontDescriptor().getFontName(); if (font.isEmbedded() && fontName.length() > 7 && fontName.charAt(6) == '+') { return fontName.substring(7);
if (gid == 0 && !font.isEmbedded() && !font.isStandard14())
private static boolean fontProgramIsNull(org.apache.pdfbox.pdmodel.font.PDFont font) { if(font instanceof PDType3Font) { return false; } else if(font instanceof PDType0Font) { return descendantFontProgramIsNull((PDType0Font) font); } else if (!font.getSubType().equals(FontFactory.TYPE_3) && (font.isEmbedded())) { PDStream fontFile; if (font.getSubType().equals(FontFactory.TYPE_1) || font.getSubType().equals(FontFactory.MM_TYPE_1)) { if (font instanceof PDType1CFont) { fontFile = font.getFontDescriptor().getFontFile3(); } else { fontFile = font.getFontDescriptor().getFontFile(); } } else if (font.getSubType().equals(FontFactory.CID_FONT_TYPE_2) || font.getSubType().equals(FontFactory.TRUE_TYPE)) { fontFile = font.getFontDescriptor().getFontFile2(); } else { fontFile = font.getFontDescriptor().getFontFile3(); } if (fontFile != null) { return false; } } return true; }
if (!font.isEmbedded())
if (!font.isEmbedded() && !font.isVertical() && !font.isStandard14() && font.hasExplicitWidth(code))
text); } catch (IllegalArgumentException e) { if (font instanceof PDType1Font && !font.isEmbedded()) {
if (!font.isEmbedded())