|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFFontDescriptor
class representing a font descriptor. Font descriptors are specified on page 222 and onwards of the PDF 1.3 spec.
Field Summary | |
protected int |
ascent
|
protected int |
avgWidth
|
protected java.lang.String |
basefont
|
protected int |
capHeight
|
protected int |
descent
|
protected int |
flags
|
protected PDFRectangle |
fontBBox
|
protected PDFStream |
fontfile
|
protected int |
italicAngle
|
protected int |
leading
|
protected int |
maxWidth
|
protected int |
missingWidth
|
protected int |
stemH
|
protected int |
stemV
|
protected byte |
subtype
|
protected int |
xHeight
|
Fields inherited from class org.apache.fop.pdf.PDFObject |
generation, number |
Constructor Summary | |
PDFFontDescriptor(int number,
java.lang.String basefont,
int ascent,
int descent,
int capHeight,
int flags,
PDFRectangle fontBBox,
int italicAngle,
int stemV)
create the /FontDescriptor object |
Method Summary | |
protected void |
fillInPDF(java.lang.StringBuffer begin)
fill in the specifics for the font's descriptor. |
void |
setFontFile(byte subtype,
PDFStream fontfile)
set the optional font file stream |
void |
setMetrics(int avgWidth,
int maxWidth,
int missingWidth,
int leading,
int stemH,
int xHeight)
set the optional metrics |
byte[] |
toPDF()
produce the PDF representation for the object |
Methods inherited from class org.apache.fop.pdf.PDFObject |
getNumber, output, referencePDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int ascent
protected int capHeight
protected int descent
protected int flags
protected PDFRectangle fontBBox
protected java.lang.String basefont
protected int italicAngle
protected int stemV
protected int stemH
protected int xHeight
protected int leading
protected int avgWidth
protected int maxWidth
protected int missingWidth
protected PDFStream fontfile
protected byte subtype
Constructor Detail |
public PDFFontDescriptor(int number, java.lang.String basefont, int ascent, int descent, int capHeight, int flags, PDFRectangle fontBBox, int italicAngle, int stemV)
number
- the object's numberascent
- the maximum height above the baselinedescent
- the maximum depth below the baselinecapHeight
- height of the capital lettersflags
- various characteristics of the fontfontBBox
- the bounding box for the described fontbasefont
- the base font nameitalicAngle
- the angle of the vertical dominant strokesstemV
- the width of the dominant vertical stems of glyphsMethod Detail |
public void setMetrics(int avgWidth, int maxWidth, int missingWidth, int leading, int stemH, int xHeight)
public void setFontFile(byte subtype, PDFStream fontfile)
subtype
- the font type defined in the font streamfontfile
- the stream containing an embedded fontpublic byte[] toPDF()
protected void fillInPDF(java.lang.StringBuffer begin)
begin
- the buffer to be completed with the specific fields
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |