Class CFFToType1Font

    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Description copied from class: CustomFont
        Returns an InputStream representing an embeddable font file.
        Overrides:
        getInputStream in class CustomFont
        Returns:
        InputStream for an embeddable font file
        Throws:
        java.io.IOException - if embedFileName is not null but Source is not found
      • getInputStreams

        public java.util.List<java.io.InputStream> getInputStreams()
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • convertOTFToType1

        private java.util.List<java.io.InputStream> convertOTFToType1​(java.io.InputStream in)
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • splitGlyphs

        private java.util.List<java.util.Map<java.lang.Integer,​java.lang.Integer>> splitGlyphs​(java.util.Map<java.lang.Integer,​java.lang.Integer> glyphs)
      • convertOTFToType1

        private java.io.InputStream convertOTFToType1​(java.util.Map<java.lang.Integer,​java.lang.Integer> glyphs,
                                                      org.apache.fontbox.cff.CFFFont cffFont,
                                                      java.lang.String splitGlyphsId)
                                               throws java.io.IOException
        Throws:
        java.io.IOException