Package com.itextpdf.io.font
Class Type1Parser
- java.lang.Object
-
- com.itextpdf.io.font.Type1Parser
-
class Type1Parser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
AFM_HEADER
private byte[]
afmData
private java.lang.String
afmPath
private boolean
isBuiltInFont
private byte[]
pfbData
private java.lang.String
pfbPath
private RandomAccessSourceFactory
sourceFactory
-
Constructor Summary
Constructors Constructor Description Type1Parser(java.lang.String metricsPath, java.lang.String binaryPath, byte[] afm, byte[] pfb)
Creates a new Type1 font file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAfmPath()
RandomAccessFileOrArray
getMetricsFile()
RandomAccessFileOrArray
getPostscriptBinary()
private boolean
isAfmFile(RandomAccessFileOrArray raf)
boolean
isBuiltInFont()
-
-
-
Field Detail
-
AFM_HEADER
private static final java.lang.String AFM_HEADER
- See Also:
- Constant Field Values
-
afmPath
private java.lang.String afmPath
-
pfbPath
private java.lang.String pfbPath
-
pfbData
private byte[] pfbData
-
afmData
private byte[] afmData
-
isBuiltInFont
private boolean isBuiltInFont
-
sourceFactory
private RandomAccessSourceFactory sourceFactory
-
-
Constructor Detail
-
Type1Parser
public Type1Parser(java.lang.String metricsPath, java.lang.String binaryPath, byte[] afm, byte[] pfb)
Creates a new Type1 font file.- Parameters:
afm
- the AFM file if the input is made with abyte
arraypfb
- the PFB file if the input is made with abyte
arraymetricsPath
- the name of one of the 14 built-in fonts or the location of an AFM file. The file must end in '.afm'
-
-
Method Detail
-
getMetricsFile
public RandomAccessFileOrArray getMetricsFile() throws java.io.IOException
- Throws:
java.io.IOException
-
getPostscriptBinary
public RandomAccessFileOrArray getPostscriptBinary() throws java.io.IOException
- Throws:
java.io.IOException
-
isBuiltInFont
public boolean isBuiltInFont()
-
getAfmPath
public java.lang.String getAfmPath()
-
isAfmFile
private boolean isAfmFile(RandomAccessFileOrArray raf) throws java.io.IOException
- Throws:
java.io.IOException
-
-