Package org.apache.fop.fonts.type1
Class PFBParser
- java.lang.Object
-
- org.apache.fop.fonts.type1.PFBParser
-
public class PFBParser extends java.lang.Object
This class represents a parser for Adobe Type 1 PFB files.- See Also:
PFBData
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
CLEARTOMARK
private static byte[]
CURRENTFILE_EEXEC
-
Constructor Summary
Constructors Constructor Description PFBParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
byteCmp(byte[] src, int srcOffset, byte[] cmp)
private void
calcLengths(PFBData pfb, byte[] originalData)
private void
parsePCFormat(PFBData pfb, java.io.DataInputStream din)
PFBData
parsePFB(java.io.InputStream in)
Parses a PFB file into a PFBData object.private void
parseRAWFormat(PFBData pfb, java.io.BufferedInputStream bin)
private static int
swapInteger(int value)
-
-
-
Method Detail
-
parsePFB
public PFBData parsePFB(java.io.InputStream in) throws java.io.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:
java.io.IOException
- In case of an I/O problem
-
swapInteger
private static int swapInteger(int value)
-
parsePCFormat
private void parsePCFormat(PFBData pfb, java.io.DataInputStream din) throws java.io.IOException
- Throws:
java.io.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, java.io.BufferedInputStream bin) throws java.io.IOException
- Throws:
java.io.IOException
-
-