org.apache.fop.pdf

Class PDFFontType0

Implemented Interfaces:
PDFWritable

public class PDFFontType0
extends PDFFont

Class representing a Type0 font.

Type0 fonts are specified on page 208 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

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

Method Summary

void
setCMAP(PDFCMap cmap)
Sets the character map
void
setDescendantFonts(PDFCIDFont descendantFonts)
Set the descendant font

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

createFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, validate

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

PDFFontType0

public PDFFontType0(String fontname,
                    String basefont,
                    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(String fontname,
                    String basefont,
                    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 Details

setCMAP

public void setCMAP(PDFCMap cmap)
Sets the character map
Parameters:
cmap - the character map

setDescendantFonts

public void setDescendantFonts(PDFCIDFont descendantFonts)
Set the descendant font
Parameters:
descendantFonts - the CIDFont upon which this font is based

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