org.foray.pdf.object
Class PDFCIDFontDescriptor

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFFontDescriptor
          extended by org.foray.pdf.object.PDFCIDFontDescriptor

public class PDFCIDFontDescriptor
extends PDFFontDescriptor

Class representing a PDF Font Descriptor for CID fonts. Font descriptors for CID fonts are specified in Section 5.7.2 of the PDF 1.3 spec.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFCIDFontDescriptor(PDFDocument doc, PDFFont font, String lang)
          Create the /FontDescriptor object for a CID font.
 
Method Summary
protected  void fillInPDF(StringBuilder p)
          Fill in the specifics for the font's descriptor.
 void setCIDSet(PDFStream cidSet)
          Sets the CID set for this font descriptor.
 
Methods inherited from class org.foray.pdf.object.PDFFontDescriptor
embedFont, makeFontDescriptor, setFontFile, setMetrics, toPDF
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFCIDFontDescriptor

public PDFCIDFontDescriptor(PDFDocument doc,
                            PDFFont font,
                            String lang)
Create the /FontDescriptor object for a CID font.

Parameters:
doc - The parent PDF document.
font - The PDF Font for which this FontDescript is created.
lang - The language.
Method Detail

setCIDSet

public void setCIDSet(PDFStream cidSet)
Sets the CID set for this font descriptor.

Parameters:
cidSet - The new CID set.

fillInPDF

protected void fillInPDF(StringBuilder p)
Fill in the specifics for the font's descriptor. The given buffer already contains the fields common to all descriptors.

Overrides:
fillInPDF in class PDFFontDescriptor
Parameters:
p - The buffer to be completed with the specific fields


Copyright © 2017. All rights reserved.