fop 0.94

org.apache.fop.pdf
Class PDFFontType0

java.lang.Object
  extended by org.apache.fop.pdf.PDFObject
      extended by org.apache.fop.pdf.PDFFont
          extended by org.apache.fop.pdf.PDFFontNonBase14
              extended by org.apache.fop.pdf.PDFFontType0
All Implemented Interfaces:
PDFWritable

public class PDFFontType0
extends PDFFontNonBase14

Class representing a Type0 font.

Type0 fonts are specified on page 208 and onwards of the PDF 1.3 spec.


Field Summary
protected  PDFCMap cmap
          The character map
protected  PDFCIDFont descendantFonts
          This should be an array of CIDFont but only the first one is used
 
Fields inherited from class org.apache.fop.pdf.PDFFontNonBase14
descriptor, firstChar, lastChar, widths
 
Fields inherited from class org.apache.fop.pdf.PDFFont
basefont, encoding, fontname, subtype
 
Fields inherited from class org.apache.fop.pdf.PDFObject
DATE_FORMAT, log
 
Constructor Summary
PDFFontType0(java.lang.String fontname, java.lang.String basefont, java.lang.Object encoding)
          Create the /Font object
PDFFontType0(java.lang.String fontname, java.lang.String basefont, java.lang.Object encoding, PDFCIDFont descendantFonts)
          Create the /Font object
 
Method Summary
protected  void fillInPDF(java.lang.StringBuffer target)
          This method is called to receive the specifics for the font's subtype.
 void setCMAP(PDFCMap cmap)
          Sets the character map
 void setDescendantFonts(PDFCIDFont descendantFonts)
          Set the descendant font
 
Methods inherited from class org.apache.fop.pdf.PDFFontNonBase14
getDescriptor, setDescriptor, setWidthMetrics, validate
 
Methods inherited from class org.apache.fop.pdf.PDFFont
createFont, createFont, getName, getPDFNameForFontType, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descendantFonts

protected PDFCIDFont descendantFonts
This should be an array of CIDFont but only the first one is used


cmap

protected PDFCMap cmap
The character map

Constructor Detail

PDFFontType0

public PDFFontType0(java.lang.String fontname,
                    java.lang.String basefont,
                    java.lang.Object encoding)
Create the /Font object

Parameters:
fontname - the internal name for the font
basefont - the base font name
encoding - the character encoding schema used by the font

PDFFontType0

public PDFFontType0(java.lang.String fontname,
                    java.lang.String basefont,
                    java.lang.Object encoding,
                    PDFCIDFont descendantFonts)
Create the /Font object

Parameters:
fontname - the internal name for the font
basefont - the base font name
encoding - the character encoding schema used by the font
descendantFonts - the CIDFont upon which this font is based
Method Detail

setDescendantFonts

public void setDescendantFonts(PDFCIDFont descendantFonts)
Set the descendant font

Parameters:
descendantFonts - the CIDFont upon which this font is based

setCMAP

public void setCMAP(PDFCMap cmap)
Sets the character map

Parameters:
cmap - the character map

fillInPDF

protected void fillInPDF(java.lang.StringBuffer target)
Description copied from class: PDFFont
This method is called to receive the specifics for the font's subtype.

The given buffer already contains the fields common to all font types.

Overrides:
fillInPDF in class PDFFontNonBase14
Parameters:
target - the buffer to be completed with the type specific fields
See Also:
PDFFont.fillInPDF(StringBuffer)

fop 0.94

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