Class PDFFontNonBase14
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
org.apache.fop.pdf.PDFFont
org.apache.fop.pdf.PDFFontNonBase14
- All Implemented Interfaces:
CompressedObject, PDFWritable
- Direct Known Subclasses:
PDFFontTrueType, PDFFontType1, PDFFontType3
A common ancestor for Type1, TrueType, MMType1 and Type3 fonts
(all except base 14 fonts).
-
Field Summary
Fields inherited from class PDFDictionary
entries, order -
Constructor Summary
ConstructorsConstructorDescriptionPDFFontNonBase14(String fontname, FontType subtype, String basefont, Object encoding) Create the /Font object -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDescriptor(PDFFontDescriptor descriptor) Set the font descriptor (unused for the Type3 fonts)voidsetWidthMetrics(int firstChar, int lastChar, PDFArray widths) Set the width metrics for the fontprotected voidvalidate()Validates the PDF object prior to serialization.Methods inherited from class PDFFont
createFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicodeMethods inherited from class PDFDictionary
containsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionaryMethods inherited from class PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF, toPDFString
-
Constructor Details
-
PDFFontNonBase14
-
-
Method Details
-
setWidthMetrics
Set the width metrics for the font- Parameters:
firstChar- the first character code in the fontlastChar- the last character code in the fontwidths- an array of size (lastChar - firstChar +1)
-
setDescriptor
Set the font descriptor (unused for the Type3 fonts)- Parameters:
descriptor- the descriptor for other font's metrics
-
getDescriptor
- Returns:
- the FontDescriptor or null if there is none
-
validate
-