public class PDFFontType3 extends PDFFontNonBase14
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.
entries, order
Constructor and Description |
---|
PDFFontType3(java.lang.String fontname,
java.lang.String basefont,
java.lang.Object encoding)
Create the /Font object
|
PDFFontType3(java.lang.String fontname,
java.lang.String basefont,
java.lang.Object encoding,
PDFRectangle fontBBox,
PDFArray fontMatrix,
PDFCharProcs charProcs)
Create the /Font object
|
Modifier and Type | Method and Description |
---|---|
void |
setCharProcs(PDFCharProcs chars)
Set the glyphs' definitions.
|
void |
setFontBBox(PDFRectangle bbox)
Set the font's bounding box
|
void |
setFontMatrix(PDFArray matrix)
Set the font's transformation matrix
|
getDescriptor, setDescriptor, setWidthMetrics, validate
createFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicode
containsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionary
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
public PDFFontType3(java.lang.String fontname, java.lang.String basefont, java.lang.Object encoding)
fontname
- the internal name for the fontbasefont
- the base font nameencoding
- the character encoding schema used by the fontpublic PDFFontType3(java.lang.String fontname, java.lang.String basefont, java.lang.Object encoding, PDFRectangle fontBBox, PDFArray fontMatrix, PDFCharProcs charProcs)
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' definitionspublic void setFontBBox(PDFRectangle bbox)
bbox
- bounding box for the fontpublic void setFontMatrix(PDFArray matrix)
matrix
- the transformation matrix for the fontpublic void setCharProcs(PDFCharProcs chars)
The /CharProcs object needs to be registered in the document's resources.
chars
- the glyphs' dictionaryCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.