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

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

entries, order

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 a /FontDescriptor object.

Method Summary

void
setCIDSet(PDFStream cidSet)
Set the CID set stream.

Methods inherited from class org.apache.fop.pdf.PDFFontDescriptor

getCIDSet, getFontFile, setCIDSet, setFontFile, setMetrics

Methods inherited from class org.apache.fop.pdf.PDFDictionary

get, output, put, put, writeDictionary

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

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Constructor Details

PDFCIDFontDescriptor

public PDFCIDFontDescriptor(String basefont,
                            int[] fontBBox,
                            int capHeight,
                            int flags,
                            int italicAngle,
                            int stemV,
                            String lang)
Create a /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

setCIDSet

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

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