org.apache.fop.pdf
Class PDFFontType0
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFFont
org.apache.fop.pdf.PDFFontNonBase14
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descendantFonts
protected PDFCIDFont descendantFonts
- this should be an array of CIDFont but only the first one is used
cmap
protected PDFCMap cmap
PDFFontType0
public PDFFontType0(int number,
String fontname,
byte subtype,
String basefont,
Object encoding)
- create the /Font object
- Parameters:
number
- the object's numberfontname
- the internal name for the fontsubtype
- the font's subtype (PDFFont.TYPE0)basefont
- the base font nameencoding
- the character encoding schema used by the fontmapping
- the Unicode mapping mechanism
PDFFontType0
public PDFFontType0(int number,
String fontname,
byte subtype,
String basefont,
Object encoding,
PDFCIDFont descendantFonts)
- create the /Font object
- Parameters:
number
- the object's numberfontname
- the internal name for the fontsubtype
- the font's subtype (PDFFont.TYPE0)basefont
- the base font nameencoding
- the character encoding schema used by the fontmapping
- the Unicode mapping mechanismdescendantFonts
- the CIDFont upon which this font is based
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
- Parameters:
p
- the buffer to be completed with the type specific fields
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.