org.apache.fop.pdf
Class PDFFontNonBase14
- PDFWritable
public abstract class PDFFontNonBase14
A common ancestor for Type1, TrueType, MMType1 and Type3 fonts
(all except base 14 fonts).
encode , encodeString , encodeText , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , hasObjectNumber , makeReference , output , referencePDF , setDocument , setObjectNumber , toInlinePDFString , toPDF , toPDFString |
firstChar
protected int firstChar
first character code in the font
lastChar
protected int lastChar
last character code in the font
widths
protected PDFArray widths
widths of characters from firstChar to lastChar
PDFFontNonBase14
public PDFFontNonBase14(String fontname,
FontType subtype,
String basefont,
Object encoding)
Create the /Font object
fontname
- the internal name for the fontsubtype
- the font's subtypebasefont
- the base font nameencoding
- the character encoding schema used by the font
fillInPDF
protected void fillInPDF(StringBuffer target)
- fillInPDF in interface PDFFont
getDescriptor
public PDFFontDescriptor getDescriptor()
- the FontDescriptor or null if there is none
setDescriptor
public void setDescriptor(PDFFontDescriptor descriptor)
Set the font descriptor (unused for the Type3 fonts)
descriptor
- the descriptor for other font's metrics
setWidthMetrics
public void setWidthMetrics(int firstChar,
int lastChar,
PDFArray widths)
Set the width metrics for the font
firstChar
- the first character code in the fontlastChar
- the last character code in the fontwidths
- an array of size (lastChar - firstChar +1)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.