Class Pfm2afm
java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.Pfm2afm
Converts a PFM file into an AFM file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected shortprotected shortprotected shortprotected intprotected intprotected byteprotected shortprotected byteprotected intprotected Stringprotected byteprotected shortprotected intprotected shortprotected shortprotected intprotected intprotected intprotected intprotected shortprivate RandomAccessFileOrArrayprotected shortprotected booleanprotected byteprotected intprotected byteprotected intprotected shortprivate PrintWriterprotected byteprotected shortprotected shortprotected shortprotected intprotected intprotected intprotected shortprotected byteprotected shortprotected shortprotected shortprotected shortprivate int[]private String[]protected short -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePfm2afm(RandomAccessFileOrArray in, OutputStream out) Creates a new instance of Pfm2afm -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconvert(RandomAccessFileOrArray in, OutputStream out) Converts a PFM file into an AFM file.static voidprivate voidopenpfm()private voidprivate voidoutval(int n) private voidprivate voidprivate voidprivate voidprivate Stringprivate StringreadString(int n)
-
Field Details
-
in
-
out
-
vers
protected short vers -
h_len
protected int h_len -
copyright
-
type
protected short type -
points
protected short points -
verres
protected short verres -
horres
protected short horres -
ascent
protected short ascent -
intleading
protected short intleading -
extleading
protected short extleading -
italic
protected byte italic -
uline
protected byte uline -
overs
protected byte overs -
weight
protected short weight -
charset
protected byte charset -
pixwidth
protected short pixwidth -
pixheight
protected short pixheight -
kind
protected byte kind -
avgwidth
protected short avgwidth -
maxwidth
protected short maxwidth -
firstchar
protected int firstchar -
lastchar
protected int lastchar -
defchar
protected byte defchar -
brkchar
protected byte brkchar -
widthby
protected short widthby -
device
protected int device -
face
protected int face -
bits
protected int bits -
bitoff
protected int bitoff -
extlen
protected short extlen -
psext
protected int psext -
chartab
protected int chartab -
res1
protected int res1 -
kernpairs
protected int kernpairs -
res2
protected int res2 -
fontname
protected int fontname -
capheight
protected short capheight -
xheight
protected short xheight -
ascender
protected short ascender -
descender
protected short descender -
isMono
protected boolean isMono -
Win2PSStd
private int[] Win2PSStd -
WinChars
-
-
Constructor Details
-
Pfm2afm
Creates a new instance of Pfm2afm- Throws:
IOException
-
-
Method Details
-
convert
Converts a PFM file into an AFM file.- Parameters:
in- the PFM fileout- the AFM file- Throws:
IOException- on error
-
main
-
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()
-