org.apache.fop.pdf

Class PDFCIDFontDescriptor

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 String
lang
The language for the font

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFCIDFontDescriptor(String basefont, int[] fontBBox, int capHeight, int flags, int italicAngle, int stemV, String lang)
create the /FontDescriptor object

Method Summary

protected void
fillInPDF(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.PDFFontDescriptor

fillInPDF, getCIDSet, getFontFile, setCIDSet, setFontFile, setMetrics, toPDFString

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, toPDFString

Field Details

cidSet

protected PDFStream cidSet
The cid set stream

lang

protected String lang
The language for the font

Constructor Details

PDFCIDFontDescriptor

public PDFCIDFontDescriptor(String basefont,
                            int[] fontBBox,
                            int capHeight,
                            int flags,
                            int italicAngle,
                            int stemV,
                            String lang)
create the /FontDescriptor object
Parameters:
basefont - the base font name
fontBBox - the bounding box for the described font
capHeight - height of the capital letters
flags - various characteristics of the font
italicAngle - the angle of the vertical dominant strokes
stemV - the width of the dominant vertical stems of glyphs
lang - the language

Method Details

fillInPDF

protected void fillInPDF(StringBuffer p)
Fill in the pdf data for this font descriptor. The charset specific dictionary entries are output.
Overrides:
fillInPDF in interface PDFFontDescriptor
Parameters:
p - the string buffer to append the data

setCIDSet

public void setCIDSet(PDFStream cidSet)
Set the CID set stream.
Parameters:
cidSet - the pdf stream cotnaining the CID set

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.