Class FontDescriptorHelper<T extends FontContainer>

    • Method Detail

      • validate

        public void validate()
      • checkMandatoryFields

        protected boolean checkMandatoryFields​(COSDictionary fDescriptor)
      • hasOnlyOneFontFile

        protected boolean hasOnlyOneFontFile​(PDFontDescriptor fontDescriptor)
        Return true if the FontDescriptor has only one FontFile entry.
        Parameters:
        fontDescriptor -
        Returns:
        true if the FontDescriptor has only one FontFile entry.
      • fontFileNotEmbedded

        protected boolean fontFileNotEmbedded​(PDFontDescriptor fontDescriptor)
      • checkFontFileMetaData

        protected void checkFontFileMetaData​(PDFontDescriptor fontDescriptor,
                                             PDStream fontFile)
        Type0, Type1 and TrueType FontValidator call this method to check the FontFile meta data.
        Parameters:
        fontDescriptor - The FontDescriptor which contains the FontFile stream
        fontFile - The font file stream to check
      • getMetaDataStreamAsBytes

        protected final byte[] getMetaDataStreamAsBytes​(PDMetadata metadata)
      • isSubSet

        public static boolean isSubSet​(java.lang.String fontName)