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 , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
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
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
setToUnicode
public void setToUnicode(PDFCMap cmap)
Sets a ToUnicode CMap.
cmap
- the ToUnicode character map
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-2008 The Apache Software Foundation. All Rights Reserved.