org.apache.fop.pdf
Class PDFCIDFontDescriptor
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFFontDescriptor
org.apache.fop.pdf.PDFCIDFontDescriptor
- All Implemented Interfaces:
- PDFWritable
public class PDFCIDFontDescriptor
- extends PDFFontDescriptor
class representing a font descriptor for CID fonts.
Font descriptors for CID fonts are specified on page 227 and onwards of the PDF 1.3 spec.
Field Summary |
protected PDFStream |
cidSet
The cid set stream |
protected java.lang.String |
lang
The language for the font |
Constructor Summary |
PDFCIDFontDescriptor(java.lang.String basefont,
int[] fontBBox,
int capHeight,
int flags,
int italicAngle,
int stemV,
java.lang.String lang)
create the /FontDescriptor object |
Method Summary |
protected void |
fillInPDF(java.lang.StringBuffer p)
Fill in the pdf data for this font descriptor. |
void |
setCIDSet(PDFStream cidSet)
Set the CID set stream. |
Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lang
protected java.lang.String lang
- The language for the font
cidSet
protected PDFStream cidSet
- The cid set stream
PDFCIDFontDescriptor
public PDFCIDFontDescriptor(java.lang.String basefont,
int[] fontBBox,
int capHeight,
int flags,
int italicAngle,
int stemV,
java.lang.String lang)
- create the /FontDescriptor object
- Parameters:
basefont
- the base font namefontBBox
- the bounding box for the described fontflags
- various characteristics of the fontcapHeight
- height of the capital lettersstemV
- the width of the dominant vertical stems of glyphsitalicAngle
- the angle of the vertical dominant strokeslang
- the language
setCIDSet
public void setCIDSet(PDFStream cidSet)
- Set the CID set stream.
- Parameters:
cidSet
- the pdf stream cotnaining the CID set
fillInPDF
protected void fillInPDF(java.lang.StringBuffer p)
- Fill in the pdf data for this font descriptor.
The charset specific dictionary entries are output.
- Overrides:
fillInPDF
in class PDFFontDescriptor
- Parameters:
p
- the string buffer to append the data
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.