Package org.apache.fop.fonts.type1
Class AFMParser
- java.lang.Object
-
- org.apache.fop.fonts.type1.AFMParser
-
public class AFMParser extends java.lang.Object
Parses the contents of a Type 1 AFM font metrics file into an object structure (AFMFile
).
-
-
Constructor Summary
Constructors Constructor Description AFMParser()
Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AFMFile
parse(java.io.BufferedReader reader, java.lang.String afmFileName)
Parses an AFM file from a BufferedReader.AFMFile
parse(java.io.InputStream in, java.lang.String afmFileName)
Parses an AFM file from a stream.
-
-
-
Method Detail
-
parse
public AFMFile parse(java.io.InputStream in, java.lang.String afmFileName) throws java.io.IOException
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:
java.io.IOException
- if an I/O error occurs
-
parse
public AFMFile parse(java.io.BufferedReader reader, java.lang.String afmFileName) throws java.io.IOException
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:
java.io.IOException
- if an I/O error occurs
-
-