Package com.lowagie.text.pdf
Class Pfm2afm
java.lang.Object
com.lowagie.text.pdf.Pfm2afm
Converts a PFM file into an AFM file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate short
private short
private short
private int
private int
private byte
private short
private byte
private int
private String
private byte
private short
private int
private short
private short
private int
private int
private int
private int
private short
private RandomAccessFileOrArray
private short
private boolean
private byte
private int
private byte
private int
private short
private PrintWriter
private byte
private short
private short
private short
private int
private int
private int
private short
private byte
private short
private short
private short
private short
private int[]
Translate table from 1004 to psstd.private String[]
Windows character names.private int[]
Character class.private 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
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. -
WinClass
private int[] WinClassCharacter class. This is a minor attempt to overcome the problem that in the pfm file, all unused characters are given the width of space. Note that this array isn't used in iText. -
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:
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()
-