@Override protected boolean checkMandatoryFields(COSDictionary fDescriptor) { boolean result = super.checkMandatoryFields(fDescriptor); /* * if this font is a subset, the CharSet entry must be present in the FontDescriptor */ if (isSubSet(fontDescriptor.getFontName())) { String charsetStr = fontDescriptor.getCharSet(); if (charsetStr == null || "".equals(charsetStr)) { this.fContainer.push(new ValidationError(ERROR_FONTS_CHARSET_MISSING_FOR_SUBSET, fontDescriptor.getFontName() + ": The Charset entry is missing for the Type1 Subset")); result = false; } } return result; }
@Override public String getCharSet() { return descriptor.getCharSet(); }
@Override public String getCharSet() { PDFontDescriptor fontDescriptor = pdFontLike.getFontDescriptor(); return fontDescriptor != null ? fontDescriptor.getCharSet() : null; }
PDFontDescriptor fontDescriptor = pdFontLike.getFontDescriptor(); if (fontDescriptor != null) { String charSet = fontDescriptor.getCharSet(); if (charSet != null) { String[] splittedCharSet = fontDescriptor.getCharSet().split("/");
@Override protected boolean checkMandatoryFields(COSDictionary fDescriptor) { boolean result = super.checkMandatoryFields(fDescriptor); /* * if this font is a subset, the CharSet entry must be present in the FontDescriptor */ if (isSubSet(fontDescriptor.getFontName())) { String charsetStr = fontDescriptor.getCharSet(); if (charsetStr == null || "".equals(charsetStr)) { this.fContainer.push(new ValidationError(ERROR_FONTS_CHARSET_MISSING_FOR_SUBSET, fontDescriptor.getFontName() + ": The Charset entry is missing for the Type1 Subset")); result = false; } } return result; }
@Override protected boolean checkMandatoryFields(COSDictionary fDescriptor) { boolean result = super.checkMandatoryFields(fDescriptor); /* * if this font is a subset, the CharSet entry must be present in the FontDescriptor */ if (isSubSet(fontDescriptor.getFontName())) { String charsetStr = fontDescriptor.getCharSet(); if (charsetStr == null || "".equals(charsetStr)) { this.fContainer.push(new ValidationError(ERROR_FONTS_CHARSET_MISSING_FOR_SUBSET, fontDescriptor.getFontName() + ": The Charset entry is missing for the Type1 Subset")); result = false; } } return result; }