Package org.apache.fop.fonts.type1
Class AFMParser
java.lang.Object
org.apache.fop.fonts.type1.AFMParser
Parses the contents of a Type 1 AFM font metrics file into an object structure (
AFMFile
).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse
(BufferedReader reader, String afmFileName) Parses an AFM file from a BufferedReader.parse
(InputStream in, String afmFileName) Parses an AFM file from a stream.
-
Constructor Details
-
AFMParser
public AFMParser()Main constructor.
-
-
Method Details
-
parse
Parses an AFM file from a stream.- Parameters:
in
- the stream to read fromafmFileName
- the name of the AFM file- Returns:
- the parsed AFM file
- Throws:
IOException
- if an I/O error occurs
-
parse
Parses an AFM file from a BufferedReader.- Parameters:
reader
- the BufferedReader instance to read fromafmFileName
- the name of the AFM file- Returns:
- the parsed AFM file
- Throws:
IOException
- if an I/O error occurs
-