Package org.apache.fop.pdf
Class PDFFontType3
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
org.apache.fop.pdf.PDFFont
org.apache.fop.pdf.PDFFontNonBase14
org.apache.fop.pdf.PDFFontType3
- All Implemented Interfaces:
PDFWritable
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.
-
Field Summary
Fields inherited from class org.apache.fop.pdf.PDFDictionary
entries, order
-
Constructor Summary
ConstructorDescriptionPDFFontType3
(String fontname, String basefont, Object encoding) Create the /Font objectPDFFontType3
(String fontname, String basefont, Object encoding, PDFRectangle fontBBox, PDFArray fontMatrix, PDFCharProcs charProcs) Create the /Font object -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCharProcs
(PDFCharProcs chars) Set the glyphs' definitions.void
setFontBBox
(PDFRectangle bbox) Set the font's bounding boxvoid
setFontMatrix
(PDFArray matrix) Set the font's transformation matrixMethods inherited from class org.apache.fop.pdf.PDFFontNonBase14
getDescriptor, setDescriptor, setWidthMetrics, validate
Methods inherited from class org.apache.fop.pdf.PDFFont
createFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicode
Methods inherited from class org.apache.fop.pdf.PDFDictionary
containsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionary
Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
Constructor Details
-
PDFFontType3
Create the /Font object- Parameters:
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- Parameters:
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
-
-
Method Details
-
setFontBBox
Set the font's bounding box- Parameters:
bbox
- bounding box for the font
-
setFontMatrix
Set the font's transformation matrix- Parameters:
matrix
- the transformation matrix for the font
-
setCharProcs
Set the glyphs' definitions.The /CharProcs object needs to be registered in the document's resources.
- Parameters:
chars
- the glyphs' dictionary
-