org.apache.fop.pdf
Class PDFFontNonBase14

org.apache.fop.pdf.PDFObject
  |
  +--org.apache.fop.pdf.PDFFont
        |
        +--org.apache.fop.pdf.PDFFontNonBase14
Direct Known Subclasses:
PDFFontType1

public abstract class PDFFontNonBase14
extends PDFFont

A common ancestor for Type1, TrueType, MMType1 and Type3 fonts (all except base 14 fonts).


Fields inherited from class org.apache.fop.pdf.PDFFont
MMTYPE1, TRUETYPE, TYPE0, TYPE1, TYPE3

Constructor Summary
PDFFontNonBase14(int number, String fontname, byte subtype, String basefont, Object encoding)
          create the /Font object

Method Summary
 voidsetDescriptor(PDFFontDescriptor descriptor)
          set the font descriptor (unused for the Type3 fonts)
 voidsetWidthMetrics(int firstChar, int lastChar, PDFArray widths)
          set the width metrics for the font

Methods inherited from class org.apache.fop.pdf.PDFFont
createFont, createFont, getName, toPDF

Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, referencePDF

Constructor Detail

PDFFontNonBase14

public PDFFontNonBase14(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
basefont - the base font name
encoding - the character encoding schema used by the font
mapping - the Unicode mapping mechanism
Method Detail

setDescriptor

public void setDescriptor(PDFFontDescriptor descriptor)
set the font descriptor (unused for the Type3 fonts)
Parameters:
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
Parameters:
firstChar - the first character code in the font
lastChar - the last character code in the font
widths - an array of size (lastChar - firstChar +1)

Association Links

to Class org.apache.fop.pdf.PDFArray

widths of characters from firstChar to lastChar

to Class org.apache.fop.pdf.PDFFontDescriptor

descriptor of font metrics