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(String fontname,
String basefont,
Object encoding)
Create the /Font object
|
PDFFontType3(String fontname,
String basefont,
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, validatecreateFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicodecontainsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionarycontentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFFontType3(String fontname, String basefont, Object encoding)
fontname - the internal name for the fontbasefont - the base font nameencoding - the character encoding schema used by the fontpublic PDFFontType3(String fontname, String basefont, 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 © 2023 Apache Software Foundation. All rights reserved.