Class PFBParser

java.lang.Object
org.apache.fop.fonts.type1.PFBParser

public class PFBParser extends Object
This class represents a parser for Adobe Type 1 PFB files.
See Also:
  • Field Details

    • CURRENTFILE_EEXEC

      private static final byte[] CURRENTFILE_EEXEC
    • CLEARTOMARK

      private static final byte[] CLEARTOMARK
  • Constructor Details

    • PFBParser

      public PFBParser()
  • Method Details

    • parsePFB

      public PFBData parsePFB(InputStream in) throws IOException
      Parses a PFB file into a PFBData object.
      Parameters:
      in - InputStream to load the PFB file from
      Returns:
      PFBData memory representation of the font
      Throws:
      IOException - In case of an I/O problem
    • swapInteger

      private static int swapInteger(int value)
    • parsePCFormat

      private void parsePCFormat(PFBData pfb, DataInputStream din) throws IOException
      Throws:
      IOException
    • byteCmp

      private static boolean byteCmp(byte[] src, int srcOffset, byte[] cmp)
    • calcLengths

      private void calcLengths(PFBData pfb, byte[] originalData)
    • parseRAWFormat

      private void parseRAWFormat(PFBData pfb, BufferedInputStream bin) throws IOException
      Throws:
      IOException