Class Pfm2afm
java.lang.Object
com.itextpdf.io.font.Pfm2afm
Converts a PFM file into an AFM file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate shortprivate shortprivate shortprivate intprivate intprivate byteprivate shortprivate byteprivate intprivate Stringprivate byteprivate shortprivate intprivate shortprivate shortprivate intprivate intprivate intprivate intprivate shortprivate RandomAccessFileOrArrayprivate shortprivate booleanprivate byteprivate intprivate byteprivate intprivate shortprivate PrintWriterprivate byteprivate shortprivate shortprivate shortprivate intprivate intprivate intprivate shortprivate byteprivate shortprivate shortprivate shortprivate shortprivate int[]Translate table from 1004 to psstd.private String[]Windows character names.private short -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePfm2afm(RandomAccessFileOrArray input, OutputStream output) Creates a new instance of Pfm2afm -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconvert(RandomAccessFileOrArray input, OutputStream output) Converts a PFM file into an AFM file.private voidopenpfm()private voidprivate voidoutval(int n) private voidprivate voidprivate voidprivate voidprivate Stringprivate StringreadString(int n)
-
Field Details
-
input
-
output
-
vers
private short vers -
h_len
private int h_len -
copyright
-
type
private short type -
points
private short points -
verres
private short verres -
horres
private short horres -
ascent
private short ascent -
intleading
private short intleading -
extleading
private short extleading -
italic
private byte italic -
uline
private byte uline -
overs
private byte overs -
weight
private short weight -
charset
private byte charset -
pixwidth
private short pixwidth -
pixheight
private short pixheight -
kind
private byte kind -
avgwidth
private short avgwidth -
maxwidth
private short maxwidth -
firstchar
private int firstchar -
lastchar
private int lastchar -
defchar
private byte defchar -
brkchar
private byte brkchar -
widthby
private short widthby -
device
private int device -
face
private int face -
bits
private int bits -
bitoff
private int bitoff -
extlen
private short extlen -
psext
private int psext -
chartab
private int chartab -
res1
private int res1 -
kernpairs
private int kernpairs -
res2
private int res2 -
fontname
private int fontname -
capheight
private short capheight -
xheight
private short xheight -
ascender
private short ascender -
descender
private short descender -
isMono
private boolean isMono -
Win2PSStd
private int[] Win2PSStdTranslate table from 1004 to psstd. 1004 is an extension of the Windows translate table used in PM. -
WinChars
Windows character names. Give a name to the used locations for when the all flag is specified.
-
-
Constructor Details
-
Pfm2afm
Creates a new instance of Pfm2afm- Throws:
IOException
-
-
Method Details
-
convert
Converts a PFM file into an AFM file.- Parameters:
input- the PFM fileoutput- the AFM file- Throws:
IOException- on error
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
outval
private void outval(int n) -
outchar
-
openpfm
- Throws:
IOException
-
putheader
- Throws:
IOException
-
putchartab
- Throws:
IOException
-
putkerntab
- Throws:
IOException
-
puttrailer
private void puttrailer()
-