org.apache.fop.pdf
Class PDFFontType0

java.lang.Object
  extended byorg.apache.fop.pdf.PDFObject
      extended byorg.apache.fop.pdf.PDFFont
          extended byorg.apache.fop.pdf.PDFFontNonBase14
              extended byorg.apache.fop.pdf.PDFFontType0

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
           
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, MMTYPE1, subtype, TRUETYPE, TYPE_NAMES, TYPE0, TYPE1, TYPE3
 
Fields inherited from class org.apache.fop.pdf.PDFObject
generation, number
 
Constructor Summary
PDFFontType0(int number, String fontname, byte subtype, String basefont, Object encoding)
          create the /Font object
PDFFontType0(int number, String fontname, byte subtype, String basefont, Object encoding, PDFCIDFont descendantFonts)
          create the /Font object
 
Method Summary
protected  void fillInPDF(StringBuffer p)
          fill in the specifics for the font's subtype
 void setCMAP(PDFCMap cmap)
           
 void setDescendantFonts(PDFCIDFont descendantFonts)
          set the descendant font
 
Methods inherited from class org.apache.fop.pdf.PDFFontNonBase14
setDescriptor, setWidthMetrics
 
Methods inherited from class org.apache.fop.pdf.PDFFont
createFont, createFont, getName, toPDF
 
Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, output, referencePDF
 
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
Constructor Detail

PDFFontType0

public PDFFontType0(int number,
                    String fontname,
                    byte subtype,
                    String basefont,
                    Object encoding)
create the /Font object

Parameters:
number - the object's number
fontname - the internal name for the font
subtype - the font's subtype (PDFFont.TYPE0)
basefont - the base font name
encoding - the character encoding schema used by the font

PDFFontType0

public PDFFontType0(int number,
                    String fontname,
                    byte subtype,
                    String basefont,
                    Object encoding,
                    PDFCIDFont descendantFonts)
create the /Font object

Parameters:
number - the object's number
fontname - the internal name for the font
subtype - the font's subtype (PDFFont.TYPE0)
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)

fillInPDF

protected void fillInPDF(StringBuffer p)
fill in the specifics for the font's subtype

Overrides:
fillInPDF in class PDFFontNonBase14


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.