com.lowagie.text.pdf

Class Pfm2afm

public class Pfm2afm extends Object

Converts a PFM file into an AFM file.
Field Summary
shortascender
shortascent
shortavgwidth
intbitoff
intbits
bytebrkchar
shortcapheight
bytecharset
intchartab
Stringcopyright
bytedefchar
shortdescender
intdevice
shortextleading
shortextlen
intface
intfirstchar
intfontname
shorthorres
inth_len
RandomAccessFileOrArrayin
shortintleading
booleanisMono
byteitalic
intkernpairs
bytekind
intlastchar
shortmaxwidth
PrintWriterout
byteovers
shortpixheight
shortpixwidth
shortpoints
intpsext
intres1
intres2
shorttype
byteuline
shortverres
shortvers
shortweight
shortwidthby
int[]Win2PSStd
String[]WinChars
int[]WinClass
shortxheight
Constructor Summary
Pfm2afm(RandomAccessFileOrArray in, OutputStream out)
Creates a new instance of Pfm2afm
Method Summary
static voidconvert(RandomAccessFileOrArray in, OutputStream out)
Converts a PFM file into an AFM file.
static voidmain(String[] args)
voidopenpfm()
voidoutchar(int code, int width, String name)
voidoutval(int n)
voidputchartab()
voidputheader()
voidputkerntab()
voidputtrailer()
StringreadString(int n)
StringreadString()

Field Detail

ascender

private short ascender

ascent

private short ascent

avgwidth

private short avgwidth

bitoff

private int bitoff

bits

private int bits

brkchar

private byte brkchar

capheight

private short capheight

charset

private byte charset

chartab

private int chartab

copyright

private String copyright

defchar

private byte defchar

descender

private short descender

device

private int device

extleading

private short extleading

extlen

private short extlen

face

private int face

firstchar

private int firstchar

fontname

private int fontname

horres

private short horres

h_len

private int h_len

in

private RandomAccessFileOrArray in

intleading

private short intleading

isMono

private boolean isMono

italic

private byte italic

kernpairs

private int kernpairs

kind

private byte kind

lastchar

private int lastchar

maxwidth

private short maxwidth

out

private PrintWriter out

overs

private byte overs

pixheight

private short pixheight

pixwidth

private short pixwidth

points

private short points

psext

private int psext

res1

private int res1

res2

private int res2

type

private short type

uline

private byte uline

verres

private short verres

vers

private short vers

weight

private short weight

widthby

private short widthby

Win2PSStd

private int[] Win2PSStd

WinChars

private String[] WinChars

WinClass

private int[] WinClass

xheight

private short xheight

Constructor Detail

Pfm2afm

private Pfm2afm(RandomAccessFileOrArray in, OutputStream out)
Creates a new instance of Pfm2afm

Method Detail

convert

public static void convert(RandomAccessFileOrArray in, OutputStream out)
Converts a PFM file into an AFM file.

Parameters: in the PFM file out the AFM file

Throws: IOException on error

main

public static void main(String[] args)

openpfm

private void openpfm()

outchar

private void outchar(int code, int width, String name)

outval

private void outval(int n)

putchartab

private void putchartab()

putheader

private void putheader()

putkerntab

private void putkerntab()

puttrailer

private void puttrailer()

readString

private String readString(int n)

readString

private String readString()