Class Pfm2afm
- java.lang.Object
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.Pfm2afm
-
public class Pfm2afm extends java.lang.ObjectConverts a PFM file into an AFM file.
-
-
Field Summary
Fields Modifier and Type Field Description protected shortascenderprotected shortascentprotected shortavgwidthprotected intbitoffprotected intbitsprotected bytebrkcharprotected shortcapheightprotected bytecharsetprotected intchartabprotected java.lang.Stringcopyrightprotected bytedefcharprotected shortdescenderprotected intdeviceprotected shortextleadingprotected shortextlenprotected intfaceprotected intfirstcharprotected intfontnameprotected inth_lenprotected shorthorresprivate RandomAccessFileOrArrayinprotected shortintleadingprotected booleanisMonoprotected byteitalicprotected intkernpairsprotected bytekindprotected intlastcharprotected shortmaxwidthprivate java.io.PrintWriteroutprotected byteoversprotected shortpixheightprotected shortpixwidthprotected shortpointsprotected intpsextprotected intres1protected intres2protected shorttypeprotected byteulineprotected shortverresprotected shortversprotected shortweightprotected shortwidthbyprivate int[]Win2PSStdprivate java.lang.String[]WinCharsprotected shortxheight
-
Constructor Summary
Constructors Modifier Constructor Description privatePfm2afm(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 voidconvert(RandomAccessFileOrArray in, java.io.OutputStream out)Converts a PFM file into an AFM file.static voidmain(java.lang.String[] args)private voidopenpfm()private voidoutchar(int code, int width, java.lang.String name)private voidoutval(int n)private voidputchartab()private voidputheader()private voidputkerntab()private voidputtrailer()private java.lang.StringreadString()private java.lang.StringreadString(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()
-
-