Package org.docx4j.fonts.fop.fonts.type1
Class AFMParser
java.lang.Object
org.docx4j.fonts.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
-
Constructor Details
-
AFMParser
public AFMParser()Main constructor.
-
-
Method Details
-
parse
Parses an AFM file from a local file.- Parameters:
afmFile- the AFM file- Returns:
- the parsed AFM file
- Throws:
java.io.IOException- if an I/O error occurs
-
parse
Parses an AFM file from a stream.- Parameters:
in- the stream to read from- Returns:
- the parsed AFM file
- Throws:
java.io.IOException- if an I/O error occurs
-
parse
Parses an AFM file from a BufferedReader.- Parameters:
reader- the BufferedReader instance to read from- Returns:
- the parsed AFM file
- Throws:
java.io.IOException- if an I/O error occurs
-