Class Pfm2afm
- java.lang.Object
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.Pfm2afm
-
public class Pfm2afm extends java.lang.Object
Converts a PFM file into an AFM file.
-
-
Field Summary
Fields Modifier and Type Field Description protected short
ascender
protected short
ascent
protected short
avgwidth
protected int
bitoff
protected int
bits
protected byte
brkchar
protected short
capheight
protected byte
charset
protected int
chartab
protected java.lang.String
copyright
protected byte
defchar
protected short
descender
protected int
device
protected short
extleading
protected short
extlen
protected int
face
protected int
firstchar
protected int
fontname
protected int
h_len
protected short
horres
private RandomAccessFileOrArray
in
protected short
intleading
protected boolean
isMono
protected byte
italic
protected int
kernpairs
protected byte
kind
protected int
lastchar
protected short
maxwidth
private java.io.PrintWriter
out
protected byte
overs
protected short
pixheight
protected short
pixwidth
protected short
points
protected int
psext
protected int
res1
protected int
res2
protected short
type
protected byte
uline
protected short
verres
protected short
vers
protected short
weight
protected short
widthby
private int[]
Win2PSStd
private java.lang.String[]
WinChars
protected short
xheight
-
Constructor Summary
Constructors Modifier Constructor Description private
Pfm2afm(RandomAccessFileOrArray in, java.io.OutputStream out)
Creates a new instance of Pfm2afm
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
convert(RandomAccessFileOrArray in, java.io.OutputStream out)
Converts a PFM file into an AFM file.static void
main(java.lang.String[] args)
private void
openpfm()
private void
outchar(int code, int width, java.lang.String name)
private void
outval(int n)
private void
putchartab()
private void
putheader()
private void
putkerntab()
private void
puttrailer()
private java.lang.String
readString()
private java.lang.String
readString(int n)
-
-
-
Field Detail
-
in
private RandomAccessFileOrArray in
-
out
private java.io.PrintWriter out
-
vers
protected short vers
-
h_len
protected int h_len
-
copyright
protected java.lang.String 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
private java.lang.String[] WinChars
-
-
Constructor Detail
-
Pfm2afm
private Pfm2afm(RandomAccessFileOrArray in, java.io.OutputStream out) throws java.io.IOException
Creates a new instance of Pfm2afm- Throws:
java.io.IOException
-
-
Method Detail
-
convert
public static void convert(RandomAccessFileOrArray in, java.io.OutputStream out) throws java.io.IOException
Converts a PFM file into an AFM file.- Parameters:
in
- the PFM fileout
- the AFM file- Throws:
java.io.IOException
- on error
-
main
public static void main(java.lang.String[] args)
-
readString
private java.lang.String readString(int n) throws java.io.IOException
- Throws:
java.io.IOException
-
readString
private java.lang.String readString() throws java.io.IOException
- Throws:
java.io.IOException
-
outval
private void outval(int n)
-
outchar
private void outchar(int code, int width, java.lang.String name)
-
openpfm
private void openpfm() throws java.io.IOException
- Throws:
java.io.IOException
-
putheader
private void putheader() throws java.io.IOException
- Throws:
java.io.IOException
-
putchartab
private void putchartab() throws java.io.IOException
- Throws:
java.io.IOException
-
putkerntab
private void putkerntab() throws java.io.IOException
- Throws:
java.io.IOException
-
puttrailer
private void puttrailer()
-
-