org.apache.fop.pdf
Class PDFWArray
java.lang.Object
org.apache.fop.pdf.PDFWArray
public class PDFWArray
extends java.lang.Object
Class representing a W array for CID fonts.
void | addEntry(int first, int last, int width) - Add an entry for a range of CIDs (/W element on p 213)
|
void | addEntry(int first, int last, int width, int posX, int posY) - Add an entry for a range of CIDs (/W2 element on p 210)
|
void | addEntry(int start, int[] metrics) - Add an entry for single starting CID.
|
byte[] | toPDF() - Convert this object to PDF code.
|
String | toPDFString() - Convert this object to PDF code.
|
PDFWArray
public PDFWArray()
Default constructor
PDFWArray
public PDFWArray(int[] metrics)
Convenience constructor
metrics
- the metrics array to initially add
addEntry
public void addEntry(int first,
int last,
int width)
Add an entry for a range of CIDs (/W element on p 213)
first
- the first CID in the rangelast
- the last CID in the rangewidth
- the width for all CIDs in the range
addEntry
public void addEntry(int first,
int last,
int width,
int posX,
int posY)
Add an entry for a range of CIDs (/W2 element on p 210)
first
- the first CID in the rangelast
- the last CID in the rangewidth
- the width for all CIDs in the rangeposX
- the x component for the vertical position vectorposY
- the y component for the vertical position vector
addEntry
public void addEntry(int start,
int[] metrics)
Add an entry for single starting CID.
i.e. in the form "c [w ...]"
start
- the starting CID value.metrics
- the metrics array.
toPDF
public byte[] toPDF()
Convert this object to PDF code.
toPDFString
public String toPDFString()
Convert this object to PDF code.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.