Class Type1Parser


  • class Type1Parser
    extends java.lang.Object
    • Field Detail

      • afmPath

        private java.lang.String afmPath
      • pfbPath

        private java.lang.String pfbPath
      • pfbData

        private byte[] pfbData
      • afmData

        private byte[] afmData
      • isBuiltInFont

        private boolean isBuiltInFont
    • Constructor Detail

      • Type1Parser

        public Type1Parser​(java.lang.String metricsPath,
                           java.lang.String binaryPath,
                           byte[] afm,
                           byte[] pfb)
        Creates a new Type1 font file.
        Parameters:
        afm - the AFM file if the input is made with a byte array
        pfb - the PFB file if the input is made with a byte array
        metricsPath - the name of one of the 14 built-in fonts or the location of an AFM file. The file must end in '.afm'
    • Method Detail

      • getMetricsFile

        public RandomAccessFileOrArray getMetricsFile()
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getPostscriptBinary

        public RandomAccessFileOrArray getPostscriptBinary()
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • isBuiltInFont

        public boolean isBuiltInFont()
      • getAfmPath

        public java.lang.String getAfmPath()
      • isAfmFile

        private boolean isAfmFile​(RandomAccessFileOrArray raf)
                           throws java.io.IOException
        Throws:
        java.io.IOException