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 short
protected short
protected short
protected int
protected int
protected byte
protected short
protected byte
protected int
protected String
protected byte
protected short
protected int
protected short
protected short
protected int
protected int
protected int
protected int
protected short
private RandomAccessFileOrArray
protected short
protected boolean
protected byte
protected int
protected byte
protected int
protected short
private PrintWriter
protected byte
protected short
protected short
protected short
protected int
protected int
protected int
protected short
protected byte
protected short
protected short
protected short
protected short
private int[]
private String[]
protected short
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Pfm2afm
(RandomAccessFileOrArray in, OutputStream out) Creates a new instance of Pfm2afm -
Method Summary
Modifier and TypeMethodDescriptionstatic void
convert
(RandomAccessFileOrArray in, OutputStream out) Converts a PFM file into an AFM file.static void
private void
openpfm()
private void
private void
outval
(int n) private void
private void
private void
private void
private String
private String
readString
(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()
-