Class Type1Parser
java.lang.Object
com.itextpdf.io.font.Type1Parser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate byte[]private Stringprivate booleanprivate byte[]private Stringprivate RandomAccessSourceFactory -
Constructor Summary
ConstructorsConstructorDescriptionType1Parser(String metricsPath, String binaryPath, byte[] afm, byte[] pfb) Creates a new Type1 font file. -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanboolean
-
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 abytearraypfb- the PFB file if the input is made with abytearray
-
-
Method Details
-
getMetricsFile
- Throws:
IOException
-
getPostscriptBinary
- Throws:
IOException
-
isBuiltInFont
public boolean isBuiltInFont() -
getAfmPath
-
isAfmFile
- Throws:
IOException
-