org.apache.fop.pdf
Class PDFFontType3
- PDFWritable
public class PDFFontType3
Class representing a Type3 font.
CAUTION: this is not yet fully implemented!!!!!!!
the /CharProcs is still missing its
toPDF()
method.
Type3 fonts are specified on page 206 and onwards of the PDF 1.3 spec.
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
PDFFontType3
public PDFFontType3(String fontname,
String basefont,
Object encoding)
Create the /Font object
fontname
- the internal name for the fontbasefont
- the base font nameencoding
- the character encoding schema used by the font
PDFFontType3
public PDFFontType3(String fontname,
String basefont,
Object encoding,
PDFRectangle fontBBox,
PDFArray fontMatrix,
PDFCharProcs charProcs)
Create the /Font object
fontname
- the internal name for the fontbasefont
- the base font nameencoding
- the character encoding schema used by the fontfontBBox
- the font's bounding boxfontMatrix
- the font's transformation matrixcharProcs
- the glyphs' definitions
setCharProcs
public void setCharProcs(PDFCharProcs chars)
Set the glyphs' definitions.
The /CharProcs object needs to be registered in the document's resources.
chars
- the glyphs' dictionary
setFontBBox
public void setFontBBox(PDFRectangle bbox)
Set the font's bounding box
bbox
- bounding box for the font
setFontMatrix
public void setFontMatrix(PDFArray matrix)
Set the font's transformation matrix
matrix
- the transformation matrix for the font
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.