Package com.itextpdf.io.font
Class Type1Parser
java.lang.Object
com.itextpdf.io.font.Type1Parser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private byte[]
private String
private boolean
private byte[]
private String
private RandomAccessSourceFactory
-
Constructor Summary
ConstructorsConstructorDescriptionType1Parser
(String metricsPath, String binaryPath, byte[] afm, byte[] pfb) Creates a new Type1 font file. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
boolean
-
Field Details
-
AFM_HEADER
- See Also:
-
afmPath
-
pfbPath
-
pfbData
private byte[] pfbData -
afmData
private byte[] afmData -
isBuiltInFont
private boolean isBuiltInFont -
sourceFactory
-
-
Constructor Details
-
Type1Parser
Creates a new Type1 font file.- Parameters:
metricsPath
- the name of one of the 14 built-in fonts or the location of an AFM file. The file must end in '.afm'afm
- the AFM file if the input is made with abyte
arraypfb
- the PFB file if the input is made with abyte
array
-
-
Method Details
-
getMetricsFile
- Throws:
IOException
-
getPostscriptBinary
- Throws:
IOException
-
isBuiltInFont
public boolean isBuiltInFont() -
getAfmPath
-
isAfmFile
- Throws:
IOException
-