org.apache.fop.pdf
Class PDFFontType3
java.lang.Object
|
+--org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFFont
|
+--org.apache.fop.pdf.PDFFontNonBase14
|
+--org.apache.fop.pdf.PDFFontType3
- public class PDFFontType3
- extends PDFFontNonBase14
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.
Constructor Summary |
PDFFontType3(int number,
java.lang.String fontname,
byte subtype,
java.lang.String basefont,
java.lang.Object encoding)
create the /Font object |
PDFFontType3(int number,
java.lang.String fontname,
byte subtype,
java.lang.String basefont,
java.lang.Object encoding,
PDFRectangle fontBBox,
PDFArray fontMatrix,
PDFCharProcs charProcs)
create the /Font object |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
fontBBox
protected PDFRectangle fontBBox
- font's required /FontBBox bounding box
fontMatrix
protected PDFArray fontMatrix
- font's required /FontMatrix array
charProcs
protected PDFCharProcs charProcs
- font's required /CharProcs dictionary
resources
protected PDFResources resources
- font's optional /Resources object
PDFFontType3
public PDFFontType3(int number,
java.lang.String fontname,
byte subtype,
java.lang.String basefont,
java.lang.Object encoding)
- create the /Font object
- Parameters:
number
- the object's numberfontname
- the internal name for the fontsubtype
- the font's subtype (PDFFont.TYPE3)basefont
- the base font nameencoding
- the character encoding schema used by the fontmapping
- the Unicode mapping mechanism
PDFFontType3
public PDFFontType3(int number,
java.lang.String fontname,
byte subtype,
java.lang.String basefont,
java.lang.Object encoding,
PDFRectangle fontBBox,
PDFArray fontMatrix,
PDFCharProcs charProcs)
- create the /Font object
- Parameters:
number
- the object's numberfontname
- the internal name for the fontsubtype
- the font's subtype (PDFFont.TYPE3)basefont
- the base font nameencoding
- the character encoding schema used by the fontmapping
- the Unicode mapping mechanismfontBBox
- the font's bounding boxfontMatrix
- the font's transformation matrixcharProcs
- the glyphs' definitions
setFontBBox
public void setFontBBox(PDFRectangle bbox)
- set the font's bounding box
- Parameters:
bbox
- bounding box for the font
setFontMatrix
public void setFontMatrix(PDFArray matrix)
- set the font's transformation matrix
- Parameters:
matrix
- the transformation matrix for the font
setCharProcs
public void setCharProcs(PDFCharProcs chars)
- set the glyphs' definitions.
The /CharProcs object needs to be registered in the document's resources.
- Parameters:
chars
- the glyphs' dictionary
fillInPDF
protected void fillInPDF(java.lang.StringBuffer p)
- fill in the specifics for the font's subtype.
the given buffer already contains the fields common to all font types.
- Overrides:
- fillInPDF in class PDFFontNonBase14
- Parameters:
p
- the buffer to be completed with the type specific fields
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.