public abstract class PDFFontNonBase14 extends PDFFont
entries, order
DATE_FORMAT, log
Constructor and Description |
---|
PDFFontNonBase14(java.lang.String fontname,
FontType subtype,
java.lang.String basefont,
java.lang.Object encoding)
Create the /Font object
|
Modifier and Type | Method and Description |
---|---|
PDFFontDescriptor |
getDescriptor() |
void |
setDescriptor(PDFFontDescriptor descriptor)
Set the font descriptor (unused for the Type3 fonts)
|
void |
setWidthMetrics(int firstChar,
int lastChar,
PDFArray widths)
Set the width metrics for the font
|
protected void |
validate()
Validates the PDF object prior to serialization.
|
createFont, getBaseFont, getName, getPDFNameForFontType, output, setEncoding, setEncoding, setToUnicode
get, put, put, writeDictionary
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString
public PDFFontNonBase14(java.lang.String fontname, FontType subtype, java.lang.String basefont, java.lang.Object encoding)
fontname
- the internal name for the fontsubtype
- the font's subtypebasefont
- the base font nameencoding
- the character encoding schema used by the fontpublic void setWidthMetrics(int firstChar, int lastChar, PDFArray widths)
firstChar
- the first character code in the fontlastChar
- the last character code in the fontwidths
- an array of size (lastChar - firstChar +1)public void setDescriptor(PDFFontDescriptor descriptor)
descriptor
- the descriptor for other font's metricspublic PDFFontDescriptor getDescriptor()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.